2019-01-30 23:10:52 +01:00
|
|
|
parameters:
|
|
|
|
architecture: x86
|
2019-02-01 00:10:19 +01:00
|
|
|
version: 6.2.0
|
2019-01-30 23:10:52 +01:00
|
|
|
msi: yes
|
2019-04-16 02:07:15 +02:00
|
|
|
msix: yes
|
2020-03-21 20:36:10 +01:00
|
|
|
pdb: no
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
steps:
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(System.ArtifactsDirectory)\signed
|
2021-03-12 22:25:30 +01:00
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}*.zip
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2020-07-14 21:08:45 +02:00
|
|
|
- task: AzureFileCopy@4
|
2019-01-30 23:10:52 +01:00
|
|
|
displayName: 'upload signed zip to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
2019-02-01 00:10:19 +01:00
|
|
|
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
|
2019-01-30 23:10:52 +01:00
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
2020-07-14 21:08:45 +02:00
|
|
|
resourceGroup: '$(StorageResourceGroup)'
|
2019-08-28 18:44:02 +02:00
|
|
|
condition: succeeded()
|
2019-04-16 02:07:15 +02:00
|
|
|
|
2021-03-12 22:25:30 +01:00
|
|
|
- task: AzureFileCopy@4
|
|
|
|
displayName: 'upload signed min-size package (for Guest Config) to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
|
|
|
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}-gc.zip'
|
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)-gc'
|
|
|
|
resourceGroup: '$(StorageResourceGroup)'
|
|
|
|
condition: and(eq('${{ parameters.architecture }}', 'x64'), succeeded())
|
|
|
|
|
2021-02-26 02:10:08 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
2021-03-23 19:03:05 +01:00
|
|
|
artifactPath: $(System.ArtifactsDirectory)\signedPackages
|
2021-02-26 02:10:08 +01:00
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.exe
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
|
|
|
|
|
|
|
|
- task: AzureFileCopy@4
|
|
|
|
displayName: 'upload signed exe to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
2021-03-23 19:03:05 +01:00
|
|
|
SourcePath: '$(System.ArtifactsDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.exe'
|
2021-02-26 02:10:08 +01:00
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)-private'
|
|
|
|
resourceGroup: '$(StorageResourceGroup)'
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
|
|
|
|
|
2020-05-15 21:52:39 +02:00
|
|
|
# Disable upload task as the symbols package is not currently used and we want to avoid publishing this in releases
|
2020-07-14 21:08:45 +02:00
|
|
|
#- task: AzureFileCopy@4
|
2020-05-15 21:52:39 +02:00
|
|
|
# displayName: 'upload pbd zip to Azure - ${{ parameters.architecture }}'
|
|
|
|
# inputs:
|
|
|
|
# SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-Symbols-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
|
|
|
|
# azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
# Destination: AzureBlob
|
|
|
|
# storage: '$(StorageAccount)'
|
|
|
|
# ContainerName: '$(AzureVersion)'
|
|
|
|
# condition: and(succeeded(), eq('${{ parameters.pdb }}', 'yes'))
|
2020-03-21 20:36:10 +01:00
|
|
|
|
2019-04-16 02:07:15 +02:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(Build.StagingDirectory)\signedPackages
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'))
|
|
|
|
|
2020-07-14 21:08:45 +02:00
|
|
|
- task: AzureFileCopy@4
|
2019-04-16 02:07:15 +02:00
|
|
|
displayName: 'upload signed msix to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
|
|
|
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix'
|
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
2020-05-29 19:26:30 +02:00
|
|
|
ContainerName: '$(AzureVersion)-private'
|
2020-07-14 21:08:45 +02:00
|
|
|
resourceGroup: '$(StorageResourceGroup)'
|
2019-11-05 22:03:44 +01:00
|
|
|
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'), eq(variables['SHOULD_SIGN'], 'true'))
|