Hi!
We are running GitLabCI autoscale on GCP. It works with Debian runners. Now I’d like to add windows runner too. Created windows image with openssh
and modified GitLabCI runner manager config.toml
to include windows.
[[runners]]
name = "GCP Autoscale GitLab-Runner Windows"
url = "https://gitlab.abcd.com/"
token = "token1"
executor = "docker+machine"
[runners.custom_build_dir]
[runners.docker]
tls_verify = false
image = "debian:buster-slim"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/etc/docker/certs.d:/etc/docker/certs.d:ro"]
network_mode = "host"
shm_size = 0
[runners.machine]
IdleCount = 0
IdleTime = 600
MachineDriver = "google"
MachineName = "autoscale-windows-%s"
MachineOptions = ["google-project=abcd", "google-zone=us-west1-c", "google-machine-type=n1-standard-1", "google-use-internal-ip=true", "google-machine-image=abcd/global/images/autoscale-gitlab-runner-windows-agent" ]
OffPeakTimezone = ""
OffPeakIdleCount = 0
OffPeakIdleTime = 600
Then create simple gitlabci.yml
job like
test1:
stage: test
script:
- echo "Hello from Windows"
When running the pipeline, it successfully launches Windows runner on GCP but it fails to ssh into runner. Log shows something like this
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded driver=google
Does GitLabCI Autoscale support Windows-runners? thanks for any pointers