Skip to content

Upgrade Powershell Core to 7.1.1

What does this MR do?

Upgrades the Powershell Core version used for Windows helper image and the CI image to 7.1.1.

Why was this MR needed?

Because we want to create a Linux helper image based on the official Powershell Core Alpine image, and MSFT does not have an Alpine 3.12 image for Powershell Core 7.0.3.

What's the best way to test this MR?

Spin up a Vagrant VM:

vagrant up --provision && vagrant ssh

Once inside the Vagrant VM, run the following:

powershell

Once inside Powershell, run:

cd $Env:RUNNER_SRC
$env:WINDOWS_VERSION = 'servercore1809'
$Env:GIT_LFS_256_CHECKSUM= "ca05b0b9bd39d99665045776a5d0d5c7bfa2605a6118c2f489bfd40c2c3e4f2c"
$Env:GIT_256_CHECKSUM= "bdb8c1560eca39f4d99b07705006c00d94a3f8612501046a0f89353afc5307fa"
$Env:GIT_VERSION= "2.27.0"
$Env:GIT_VERSION_BUILD= "1"
$Env:GIT_LFS_VERSION= "2.11.0"
$Env:PWSH_VERSION= "7.1.1"
$Env:PWSH_256_CHECKSUM= "D234CFD6E9DD4A2CA68BFBC64C416DE42F31760E954812E8ADE02B6D57FE243F"
$Env:SKIP_CLEANUP=1
$Env:CI_REGISTRY_IMAGE="docker.io/pombeirp"
.\ci\build_release_windows_images.ps1

Once you have an image SHA, you can test the image by running:

docker run -ti <image_sha> pwsh

What are the relevant issue numbers?

Part of #27252 (closed)

Merge request reports