File tree Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -101,20 +101,23 @@ stages:
101101 displayName : Setting SourceBranchName variable
102102 condition : succeeded()
103103
104- - task : tagBuildOrRelease@0
104+ - task : Powershell@2
105105 displayName : Tag official build
106106 inputs :
107- type : ' Build'
108- tags : ' OfficialBuild'
109- condition : and(succeeded(), endsWith(variables['SourceBranchName'], '-vs-deps'))
107+ targetType : inline
108+ script : |
109+ Write-Host "##vso[build.addBuildTag]OfficialBuild"
110+ condition : succeeded()
110111
111- - task : tagBuildOrRelease@0
112- displayName : Tag main validation build
113- inputs :
114- type : ' Build'
115- tags : |
116- MainValidationBuild
117- condition : and(succeeded(), eq(variables['SourceBranchName'], 'main'))
112+ # Don't run this while we don't have a main-vs-deps to merge. Should be uncommented when the branch comes back. Also need to change the condition of the tagging task above.
113+ #
114+ # - task: Powershell@2
115+ # displayName: Tag main validation build
116+ # inputs:
117+ # targetType: inline
118+ # script: |
119+ # Write-Host "##vso[build.addBuildTag]MainValidationBuild"
120+ # condition: and(succeeded(), eq(variables['SourceBranchName'], 'main'))
118121
119122 - task : PowerShell@2
120123 displayName : Merge main-vs-deps into source branch
Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ stages:
6161 displayName : Setting SourceBranchName variable
6262 condition : succeeded()
6363
64- - task : tagBuildOrRelease@0
64+ - task : Powershell@2
6565 displayName : Tag PR validation build
6666 inputs :
67- type : ' Build '
68- tags : |
69- PRValidationBuild
70- PRNumber: ${{ parameters.PRNumber }}
71- CommitSHA :${{ parameters.CommitSHA }}
67+ targetType : inline
68+ script : |
69+ Write-Host "##vso[build.addBuildTag]OfficialBuild"
70+ Write-Host "##vso[build.addBuildTag] ${{ parameters.CommitSHA }}"
71+ Write-Host "##vso[build.addBuildTag]PRNumber :${{ parameters.PRNumber }}"
7272 condition : succeeded()
7373
7474 - task : PowerShell@2
You can’t perform that action at this time.
0 commit comments