Skip to content

Commit 782c811

Browse files
authored
add branch name to artifact "validation-scripts" (microsoft#24710)
### Description This fix allows the JS Release Pipeline to have the info of the source branch name. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
1 parent 17cffcb commit 782c811

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ extends:
114114
targetFolder: $(Build.ArtifactStagingDirectory)\validation-scripts
115115
displayName: 'Copy validation scripts'
116116

117+
- script: |
118+
echo "== Source Branch =="
119+
echo "$(Build.SourceBranch)"
120+
echo "$(Build.SourceBranch)" > $(Build.ArtifactStagingDirectory)\node-artifacts\_branch.txt
121+
displayName: 'Extract Source Branch'
122+
117123
- task: 1ES.PublishPipelineArtifact@1
118124
inputs:
119125
artifactName: 'validation_scripts'

0 commit comments

Comments
 (0)