Skip to content

Commit 590e4f7

Browse files
committed
added the working directory.
1 parent 789e869 commit 590e4f7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

azure/common/deploy-stage.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,7 @@ stages:
272272
aws_account: ${{ parameters.aws_account }}
273273

274274
- bash: |
275-
echo working directory: $(System.DefaultWorkingDirectory)
276-
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)
281275
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)
284276
export SERVICE_ARTIFACT_NAME=`ls -t $(Pipeline.Workspace)/s/${{ parameters.service_name }}`
285277
echo "##vso[task.setvariable variable=SERVICE_ARTIFACT_NAME]$SERVICE_ARTIFACT_NAME"
286278
echo "Set Artifact Name of: $SERVICE_ARTIFACT_NAME"
@@ -292,6 +284,7 @@ stages:
292284
293285
python copy_spec.py "nhsd-apm-management-ptl-proxygen" "${{ parameters.service_name }}" "$(System.DefaultWorkingDirectory)"
294286
displayName: Copy Spec
287+
workingDirectory: $(Pipeline.Workspace)/s/${{ parameters.service_name }}//$(SERVICE_ARTIFACT_NAME)
295288
296289
- ${{ if parameters.notify }}:
297290
- template: '../components/update-github-status.yml'

0 commit comments

Comments
 (0)