Detect Windows build 10.0.19042 as 20H2
What does this MR do?
Maps the Windows build 10.0.19042 to the 20H2 version (documentation: https://learn.microsoft.com/en-us/windows/release-health/release-information).
Why was this MR needed?
I'm using a kubernetes executor in a cluster with a Windows 20H2 node that has the following labels:
beta.kubernetes.io/arch=amd64
beta.kubernetes.io/os=windows
kubernetes.io/arch=amd64
kubernetes.io/hostname=[REDACTED]
kubernetes.io/os=windows
node.kubernetes.io/windows-build=10.0.19042
When a job gets scheduled to that node it fails with:
Running with gitlab-runner 15.5.0 (0d4137b8)
on [REDACTED]
Preparing the "kubernetes" executor
Using Kubernetes namespace: gitlab-runner
ERROR: Preparation failed: prepare helper image: detecting base image: unsupported Windows Version: 10.0.19042
Will be retried in 3s ...
Using Kubernetes namespace: gitlab-runner
ERROR: Preparation failed: prepare helper image: detecting base image: unsupported Windows Version: 10.0.19042
Will be retried in 3s ...
Using Kubernetes namespace: gitlab-runner
ERROR: Preparation failed: prepare helper image: detecting base image: unsupported Windows Version: 10.0.19042
Will be retried in 3s ...
ERROR: Job failed (system failure): prepare helper image: detecting base image: unsupported Windows Version: 10.0.19042