Skip to content

Commit

Permalink
Fix AcquireBuild usage (#7653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jander-msft authored Nov 11, 2024
1 parent 10b2e62 commit b97c6bf
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions eng/pipelines/dotnet-monitor-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,40 +61,18 @@ extends:
-TaskVariableName 'BuildMajorMinorVersion'
-MajorMinorOnly
# Populate dotnetbuilds-internal-container-read-token
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
parameters:
federatedServiceConnection: 'dotnetbuilds-internal-read'
outputVariableName: 'dotnetbuilds-internal-checksums-container-read-token'
expiryInHours: 1
base64Encode: false
storageAccount: dotnetbuilds
container: internal-checksums
permissions: rl

# Populate dotnetbuilds-internal-container-read-token
- template: /eng/common/templates-official/steps/get-delegation-sas.yml
parameters:
federatedServiceConnection: 'dotnetbuilds-internal-read'
outputVariableName: 'dotnetbuilds-internal-container-read-token'
expiryInHours: 1
base64Encode: false
storageAccount: dotnetbuilds
container: internal
permissions: rl

# Only scan the files that are being shipped; use the same gathering procedure
# that the asset staging process uses.
- task: PowerShell@2
- task: AzureCLI@2
displayName: 'Download Build Assets'
inputs:
targetType: filePath
filePath: '$(Build.Repository.LocalPath)/eng/release/Scripts/AcquireBuild.ps1'
azureSubscription: 'DotNetStaging'
scriptType: ps
scriptPath: '$(Build.Repository.LocalPath)/eng/release/Scripts/AcquireBuild.ps1'
arguments: >-
-BarBuildId "$(BuildBarId)"
-AzdoToken "$(dn-bot-all-drop-rw-code-rw-release-all)"
-DownloadTargetPath "$(System.ArtifactsDirectory)\BuildAssets"
-SasSuffixes "$(dotnetbuilds-internal-checksums-container-read-token),$(dotnetbuilds-internal-container-read-token)"
-ReleaseVersion "$(BuildVersion)"
-Separated $False
workingDirectory: '$(Build.Repository.LocalPath)'
Expand Down

0 comments on commit b97c6bf

Please sign in to comment.