Skip to content

Commit d5280a5

Browse files
Replace tagBuildOrRelease with Powershell inline script (#5838) (#5849)
Co-authored-by: Justin Anderson <[email protected]>
1 parent c9bb4fe commit d5280a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eng/pipelines/stages/preparerelease.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ stages:
8383
artifact: 'StagingToolAssetsLayout'
8484
# Only tag build from real release branches
8585
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/test/release/')) }}:
86-
- task: tagBuildOrRelease@0
86+
- task: Powershell@2
8787
displayName: 'Tag Build with MonitorRelease'
8888
inputs:
89-
type: 'Build'
90-
tags: 'MonitorRelease'
89+
targetType: inline
90+
script: Write-Host "##vso[build.addbuildtag]MonitorRelease"
9191
- task: PublishPipelineArtifact@1
9292
displayName: 'Upload Staging Tool Logs'
9393
inputs:
9494
targetPath: '$(System.ArtifactsDirectory)\StagingToolLogs'
9595
artifact: 'StagingToolLogs'
9696
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
97-
- task: tagBuildOrRelease@0
97+
- task: Powershell@2
9898
displayName: 'Tag Build with update-docker'
9999
condition: ${{ parameters.updateDockerCondition }}
100100
inputs:
101-
type: 'Build'
102-
tags: 'update-docker'
101+
targetType: inline
102+
script: Write-Host "##vso[build.addbuildtag]update-docker"

0 commit comments

Comments
 (0)