mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use AzFileCopy task instead of AzCopy.exe
This commit is contained in:
@@ -65,17 +65,13 @@ jobs:
|
||||
Write-Host "##$vstsCommandString"
|
||||
displayName: Create MsixBundle
|
||||
|
||||
# Removing install as AzCopy is expected to be on the image
|
||||
#- pwsh: |
|
||||
# Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
|
||||
# Install-AzCopy
|
||||
# displayName: Install AzCopy
|
||||
|
||||
- pwsh: |
|
||||
## We use AzCopy v8.1 in our release pipeline, see the documentation at:
|
||||
## https://docs.microsoft.com/en-us/previous-versions/azure/storage/storage-use-azcopy
|
||||
|
||||
Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
|
||||
$azcopy = Find-AzCopy
|
||||
& $azcopy /Source:$(BundleDir) /Dest:https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)-private /DestKey:$(StorageAccountKey) /Pattern:*.msixbundle /Y
|
||||
displayName: Upload MSIX Bundle package to Az Blob
|
||||
- task: AzureFileCopy@4
|
||||
displayName: 'Upload MSIX Bundle package to Az Blob'
|
||||
inputs:
|
||||
SourcePath: '$(BundleDir)/*.msixbundle'
|
||||
azureSubscription: '$(AzureFileCopySubscription)'
|
||||
Destination: AzureBlob
|
||||
storage: '$(StorageAccount)'
|
||||
ContainerName: '$(AzureVersion)-private'
|
||||
resourceGroup: '$(StorageResourceGroup)'
|
||||
condition: succeeded()
|
||||
|
||||
Reference in New Issue
Block a user