Skip to content

Commit 282156d

Browse files
authored
Convert azuresdkpartnerdrops copy to WIF (#8241)
1 parent 57382d5 commit 282156d

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

eng/pipelines/templates/jobs/azuresdkpartnerdrops-to-nugetfeed.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@ jobs:
4545
- checkout: self
4646
- checkout: azure-sdk-build-tools
4747

48-
- pwsh: |
49-
azcopy cp '${{ parameters.PartnerDropsBlobBase }}/${{ parameters.PartnerDropsBlobSourceSuffix }}/*' '${{ parameters.ArtifactsPath }}' --recursive=true
50-
displayName: 'Copy from AzureSdkPartnerDrops'
51-
env:
52-
AZCOPY_AUTO_LOGIN_TYPE: SPN
53-
AZCOPY_SPA_APPLICATION_ID: $(azuresdkpartnerdrops-application-id)
54-
AZCOPY_SPA_CLIENT_SECRET: $(azuresdkpartnerdrops-service-principal-key)
48+
- task: AzurePowerShell@5
49+
displayName: 'Copy from azuresdkpartnerdrops'
5550
condition: and(succeeded(), ne(variables['SkipCopyFromPartnerDrops'], 'true'))
51+
inputs:
52+
azureSubscription: 'azuresdkpartnerdrops - Storage Partner Drops'
53+
ScriptType: 'InlineScript'
54+
azurePowerShellVersion: LatestVersion
55+
pwsh: true
56+
Inline: |
57+
azcopy copy '${{ parameters.PartnerDropsBlobBase }}/${{ parameters.PartnerDropsBlobSourceSuffix }}/*' '${{ parameters.ArtifactsPath }}' --recursive=true
58+
echo "Copied files:"
59+
dir '${{ parameters.ArtifactsPath }}' -r | % { $_.FullName }
60+
env:
61+
AZCOPY_AUTO_LOGIN_TYPE: 'PSCRED'
5662

5763
- ${{ if eq(parameters.ShouldSign, true) }}:
5864
- template: pipelines/steps/net-signing.yml@azure-sdk-build-tools
@@ -96,4 +102,4 @@ jobs:
96102
- publish: '${{ parameters.ArtifactsPath }}'
97103
displayName: Upload Packages to Artifacts
98104
artifact: packages
99-
condition: succeeded()
105+
condition: succeeded()

0 commit comments

Comments
 (0)