Skip to content

Commit 789e869

Browse files
committed
added debug paths.
1 parent 3758a92 commit 789e869

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

azure/common/deploy-stage.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,24 @@ stages:
274274
- bash: |
275275
echo working directory: $(System.DefaultWorkingDirectory)
276276
echo changed directory : $(Pipeline.Workspace)/s/${{ parameters.service_name }}/$(resources.pipeline.build_pipeline.pipelineID)
277+
278+
echo project: $(resources.pipeline.build_pipeline.projectID)
279+
echo pipeline: $(resources.pipeline.build_pipeline.pipelineID)
280+
echo runBranch: $(Build.SourceBranch)
281+
282+
echo "!!! Using ls -t will set the latest file for the artifact. If you get an error here, it is because '${{ parameters.service_name }}' is not the source alias name of the artifact"
283+
ls -R $(Pipeline.Workspace)
284+
export SERVICE_ARTIFACT_NAME=`ls -t $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
285+
echo "##vso[task.setvariable variable=SERVICE_ARTIFACT_NAME]$SERVICE_ARTIFACT_NAME"
286+
echo "Set Artifact Name of: $SERVICE_ARTIFACT_NAME"
287+
277288
cd /utils/scripts
278289
pip install pyyaml
279290
pip install json
280291
pip install boto3
281292
282293
python copy_spec.py "nhsd-apm-management-ptl-proxygen" "${{ parameters.service_name }}" "$(System.DefaultWorkingDirectory)"
283294
displayName: Copy Spec
284-
workingDirectory: $(Pipeline.Workspace)/s/${{ parameters.service_name }}/$(resources.pipeline.build_pipeline.pipelineID)
285295
286296
- ${{ if parameters.notify }}:
287297
- template: '../components/update-github-status.yml'

0 commit comments

Comments
 (0)