mirror of
https://github.com/PowerShell/PSDesiredStateConfiguration
synced 2026-06-21 13:45:25 +00:00
Release pipeline updates for 1ES (#63)
This commit is contained in:
@@ -25,14 +25,14 @@ stages:
|
||||
- powershell: |
|
||||
$powerShellPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'powershell'
|
||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.ps1 -outfile ./install-powershell.ps1
|
||||
./install-powershell.ps1 -Destination $powerShellPath
|
||||
./install-powershell.ps1 -Preview -Destination $powerShellPath
|
||||
$vstsCommandString = "vso[task.setvariable variable=PATH]$powerShellPath;$env:PATH"
|
||||
Write-Host "sending " + $vstsCommandString
|
||||
Write-Host "##$vstsCommandString"
|
||||
displayName: Install PowerShell Core
|
||||
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: 'Install NuGet 5.9.1'
|
||||
displayName: 'Install NuGet'
|
||||
inputs:
|
||||
checkLatest: false
|
||||
version: 5.9.1
|
||||
@@ -113,7 +113,7 @@ stages:
|
||||
# the certificate ID to use
|
||||
certificateId: "CP-230012"
|
||||
# the file pattern to use, comma separated
|
||||
pattern: '*.psm1,*.psd1'
|
||||
pattern: '*.psm1,*.psd1,Microsoft.PowerShell.DscSubsystem.dll'
|
||||
|
||||
- pwsh: |
|
||||
$repoName = [guid]::newGuid().ToString("N")
|
||||
@@ -187,7 +187,7 @@ stages:
|
||||
- download: current
|
||||
artifact: 'nupkg'
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: 'Install NuGet 5.9.1'
|
||||
displayName: 'Install NuGet'
|
||||
inputs:
|
||||
checkLatest: false
|
||||
version: 5.9.1
|
||||
|
||||
Reference in New Issue
Block a user