File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,22 +98,14 @@ stages:
9898 fi
9999 displayName: "check workspace is clean"
100100
101- - bash : |
102- if [[ -n "$(System.PullRequest.SourceBranch)" ]]; then
103- echo "##vso[task.setvariable variable=RESOLVED_ARTIFACT_BRANCH]$(System.PullRequest.SourceBranch)"
104- else
105- echo "##vso[task.setvariable variable=RESOLVED_ARTIFACT_BRANCH]$(Build.SourceBranch)"
106- fi
107- displayName: "Resolve artifact branch"
108-
109101 - task : DownloadPipelineArtifact@2
110102 inputs :
111103 source : " specific"
112104 project : $(resources.pipeline.build_pipeline.projectID)
113105 pipeline : $(resources.pipeline.build_pipeline.pipelineID)
114106 preferTriggeringPipeline : true
115107 runVersion : " latestFromBranch"
116- runBranch : " $(RESOLVED_ARTIFACT_BRANCH) "
108+ runBranch : $(Build.SourceBranch)
117109 path : " $(Pipeline.Workspace)/s/${{ parameters.service_name }}"
118110
119111 - bash : |
You can’t perform that action at this time.
0 commit comments