jenkinsci / docker-agent

Jenkins agent (base image) and inbound agent Docker images
https://hub.docker.com/r/jenkins/inbound-agent/
MIT License
282 stars 232 forks source link

hotfix(Windows Server Core LTSC2019) pin 2019 images to April version #816

Closed dduportal closed 4 months ago

dduportal commented 4 months ago

Until https://github.com/microsoft/Windows-Containers/issues/493 is fixed, we want to use April Windows Server Core 2019 version to avoid errors as in https://github.com/jenkinsci/docker-agent/issues/815

This PR adds a new WINDOWS_VERSION_DIGEST build argument to allow using a specific image digest (Docker image naming supports both tags and digest with the digest taking priority over tag since Moby 20.10.20) in order to pin parent image version as a workaround for a few weeks.

dduportal commented 4 months ago
mcr.microsoft.com/windows/servercore:ltsc2019@sha256:6fdf140282a2f809dae9b13fe441635867f0a27c33a438771673b8da8f3348a4: Pulling from windows/servercore

Oooray, this workaround works (at least for the build part)