Skip to content

Commit 6be762f

Browse files
authored
Update sign pipeline of Az.Tools.Predictor (#14241)
* Update sign-tool-predictor.yml for Azure Pipelines * Update sign-tool-predictor.yml for Azure Pipelines * change display name * Update sign-tool-predictor.yml for Azure Pipelines * Update sign-tool-predictor.yml for Azure Pipelines * Update sign-tool-predictor.yml for Azure Pipelines * Update sign-tool-predictor.yml for Azure Pipelines * Update sign-tool-predictor.yml for Azure Pipelines
1 parent 1959d3c commit 6be762f

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.azure-pipelines/sign-tool-predictor.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ pool:
55

66
steps:
77
- task: PowerShell@2
8-
displayName: Install PS 7.1.0-preview.7
8+
displayName: Install PS 7.2
99
inputs:
1010
targetType: 'inline'
1111
script: |
12-
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.1.0-preview.7/PowerShell-7.1.0-preview.7-win-x64.zip"
13-
$output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7-win-x64.zip"
12+
$url = "https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.3/PowerShell-7.2.0-preview.3-win-x64.zip"
13+
$output = Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3-win-x64.zip"
1414
(New-Object System.Net.WebClient).DownloadFile($url, $output)
15-
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7/"
15+
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3/"
1616
Expand-Archive -Path $output -DestinationPath $pwshPath
1717
$pwshFullPath = Convert-Path $pwshPath
1818
Write-Host $pwshFullPath
@@ -22,18 +22,19 @@ steps:
2222
inputs:
2323
targetType: inline
2424
script: |
25-
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.1.0-preview.7/pwsh.exe"
25+
$pwshPath= Join-Path -Path $(Pipeline.Workspace) -ChildPath "./PowerShell-7.2.0-preview.3/pwsh.exe"
2626
$command = "`$PSVersionTable `
2727
Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser `
2828
Install-Module PowerShellGet -Force -Confirm:`$false -Scope CurrentUser -SkipPublisherCheck `
2929
Install-Module Az -Repository PSGallery -RequiredVersion 3.0.0 -Confirm:`$false -Scope CurrentUser -AllowClobber -Force"
3030
Invoke-Command -ScriptBlock { param ($pwshPath, $command) & $pwshPath -Command $command } -ArgumentList $pwshPath, $command
3131
3232
- task: UseDotNet@2
33-
displayName: 'Use .NET Core sdk'
33+
displayName: 'Install DotNet 6.0 SDK'
3434
inputs:
35-
packageType: sdk
36-
version: 5.0.100-rc.1.20452.10
35+
packageType: 'sdk'
36+
version: '6.0.x'
37+
includePreviewVersions: true
3738

3839
- task: DotNetCoreCLI@2
3940
displayName: 'Build'
@@ -42,6 +43,12 @@ steps:
4243
custom: msbuild
4344
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Clean;Build" /p:Configuration=Release'
4445

46+
- task: UseDotNet@2
47+
displayName: 'Install DotNet 2.1 Runtime for Signing'
48+
inputs:
49+
packageType: 'runtime'
50+
version: '2.1.x'
51+
4552
- task: EsrpCodeSigning@1
4653
displayName: 'Signing'
4754
inputs:
@@ -83,7 +90,7 @@ steps:
8390
inputs:
8491
command: custom
8592
custom: msbuild
86-
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.1.0-preview.7\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
93+
arguments: 'tools\Az.Tools.Predictor\build.proj /target:"Package" /p:Configuration=Release /p:PowerShellCoreCommandPrefix="$(Pipeline.Workspace)\\PowerShell-7.2.0-preview.3\\pwsh.exe -NonInteractive -NoLogo -NoProfile -Command" '
8794

8895
- task: PublishPipelineArtifact@0
8996
displayName: 'Save artifacts'

0 commit comments

Comments
 (0)