Skip to content

Commit b97c6bf

Browse files
authored
Fix AcquireBuild usage (#7653)
1 parent 10b2e62 commit b97c6bf

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

eng/pipelines/dotnet-monitor-compliance.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,40 +61,18 @@ extends:
6161
-TaskVariableName 'BuildMajorMinorVersion'
6262
-MajorMinorOnly
6363
64-
# Populate dotnetbuilds-internal-container-read-token
65-
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
66-
parameters:
67-
federatedServiceConnection: 'dotnetbuilds-internal-read'
68-
outputVariableName: 'dotnetbuilds-internal-checksums-container-read-token'
69-
expiryInHours: 1
70-
base64Encode: false
71-
storageAccount: dotnetbuilds
72-
container: internal-checksums
73-
permissions: rl
74-
75-
# Populate dotnetbuilds-internal-container-read-token
76-
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
77-
parameters:
78-
federatedServiceConnection: 'dotnetbuilds-internal-read'
79-
outputVariableName: 'dotnetbuilds-internal-container-read-token'
80-
expiryInHours: 1
81-
base64Encode: false
82-
storageAccount: dotnetbuilds
83-
container: internal
84-
permissions: rl
85-
8664
# Only scan the files that are being shipped; use the same gathering procedure
8765
# that the asset staging process uses.
88-
- task: PowerShell@2
66+
- task: AzureCLI@2
8967
displayName: 'Download Build Assets'
9068
inputs:
91-
targetType: filePath
92-
filePath: '$(Build.Repository.LocalPath)/eng/release/Scripts/AcquireBuild.ps1'
69+
azureSubscription: 'DotNetStaging'
70+
scriptType: ps
71+
scriptPath: '$(Build.Repository.LocalPath)/eng/release/Scripts/AcquireBuild.ps1'
9372
arguments: >-
9473
-BarBuildId "$(BuildBarId)"
9574
-AzdoToken "$(dn-bot-all-drop-rw-code-rw-release-all)"
9675
-DownloadTargetPath "$(System.ArtifactsDirectory)\BuildAssets"
97-
-SasSuffixes "$(dotnetbuilds-internal-checksums-container-read-token),$(dotnetbuilds-internal-container-read-token)"
9876
-ReleaseVersion "$(BuildVersion)"
9977
-Separated $False
10078
workingDirectory: '$(Build.Repository.LocalPath)'

0 commit comments

Comments
 (0)