2019-01-22 20:21:02 +01:00
|
|
|
parameters:
|
|
|
|
parentJobs: []
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: WinPackageSigningJob
|
|
|
|
displayName: Windows Package signing
|
|
|
|
dependsOn:
|
|
|
|
${{ parameters.parentJobs }}
|
|
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
|
|
name: Package ES CodeHub Lab E
|
|
|
|
variables:
|
|
|
|
BuildConfiguration: release
|
|
|
|
BuildPlatform: any cpu
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2019-02-01 00:10:19 +01:00
|
|
|
- template: SetVersionVariables.yml
|
|
|
|
parameters:
|
|
|
|
ReleaseTagVar: $(ReleaseTagVar)
|
2019-01-22 20:21:02 +01:00
|
|
|
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: 'Download artifacts'
|
|
|
|
inputs:
|
|
|
|
downloadType: specific
|
|
|
|
itemPattern: |
|
|
|
|
**/*.zip
|
|
|
|
**/*.msi
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
dir "$(System.ArtifactsDirectory)\*" -Recurse
|
|
|
|
displayName: 'Capture Downloaded Artifacts'
|
|
|
|
# Diagnostics is not critical it passes every time it runs
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Expand-Archive -Path "$(System.ArtifactsDirectory)\results\PowerShell-$(Version)-symbols-win-x86.zip" -Destination "$(Build.StagingDirectory)\symbols\x86"
|
|
|
|
displayName: 'Expand symbols zip - x86'
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Expand-Archive -Path "$(System.ArtifactsDirectory)\results\PowerShell-$(Version)-symbols-win-x64.zip" -Destination "$(Build.StagingDirectory)\symbols\x64"
|
|
|
|
displayName: 'Expand symbols zip - x64'
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Expand-Archive -Path "$(System.ArtifactsDirectory)\results\PowerShell-$(Version)-symbols-win-fxdependent.zip" -Destination "$(Build.StagingDirectory)\symbols\fxdependent"
|
|
|
|
displayName: 'Expand symbols zip - fxdependent'
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
tools/releaseBuild/generatePackgeSigning.ps1 -AuthenticodeFiles "$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-x64.msi","$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-x86.msi" -path "$(System.ArtifactsDirectory)\package.xml"
|
|
|
|
displayName: 'Generate Package Signing Xml'
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Get-Content "$(System.ArtifactsDirectory)\package.xml"
|
|
|
|
displayName: 'Capture signing xml'
|
|
|
|
|
|
|
|
- task: PkgESCodeSign@10
|
|
|
|
displayName: 'CodeSign $(System.ArtifactsDirectory)\package.xml'
|
|
|
|
env:
|
|
|
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
|
|
|
inputs:
|
|
|
|
signConfigXml: '$(System.ArtifactsDirectory)\package.xml'
|
|
|
|
outPathRoot: '$(Build.StagingDirectory)\signedPackages'
|
|
|
|
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'))
|
|
|
|
|
2019-01-30 23:10:52 +01:00
|
|
|
- template: upload.yml
|
|
|
|
parameters:
|
|
|
|
architecture: x86
|
2019-02-01 00:10:19 +01:00
|
|
|
version: $(version)
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
- template: upload.yml
|
|
|
|
parameters:
|
|
|
|
architecture: x64
|
2019-02-01 00:10:19 +01:00
|
|
|
version: $(version)
|
2019-01-30 23:10:52 +01:00
|
|
|
|
|
|
|
- template: upload.yml
|
|
|
|
parameters:
|
|
|
|
architecture: arm32
|
2019-02-01 00:10:19 +01:00
|
|
|
version: $(version)
|
2019-01-30 23:10:52 +01:00
|
|
|
msi: no
|
|
|
|
|
|
|
|
- template: upload.yml
|
|
|
|
parameters:
|
|
|
|
architecture: arm64
|
2019-02-01 00:10:19 +01:00
|
|
|
version: $(version)
|
2019-01-30 23:10:52 +01:00
|
|
|
msi: no
|
|
|
|
|
|
|
|
- template: upload.yml
|
|
|
|
parameters:
|
|
|
|
architecture: fxdependent
|
2019-02-01 00:10:19 +01:00
|
|
|
version: $(version)
|
2019-01-30 23:10:52 +01:00
|
|
|
msi: no
|
2019-01-22 20:21:02 +01:00
|
|
|
|
|
|
|
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
|
2019-02-01 00:10:19 +01:00
|
|
|
displayName: 'Run Defender Scan'
|