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
|
|
|
|
|
|
|
|
steps:
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(Build.StagingDirectory)\signedPackages
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi
|
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
- task: AzureFileCopy@1
|
|
|
|
displayName: 'upload signed msi to Azure - ${{ parameters.architecture }}'
|
|
|
|
inputs:
|
2019-02-01 00:10:19 +01:00
|
|
|
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi'
|
2019-01-30 23:10:52 +01:00
|
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: '$(StorageAccount)'
|
|
|
|
ContainerName: '$(AzureVersion)'
|
2019-02-12 18:24:11 +01:00
|
|
|
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'), eq(variables['Build.Reason'], 'Manual'))
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: upload-final-results.yml
|
|
|
|
parameters:
|
|
|
|
artifactPath: $(System.ArtifactsDirectory)\signed
|
|
|
|
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
- task: AzureFileCopy@1
|
|
|
|
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)'
|
2019-02-12 18:24:11 +01:00
|
|
|
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'))
|