You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve tried to create a docker template for a simple windows-slave that must work along side already defined templates that make use of a linux-slave image(s). However, I am having the following error:
Jul 04, 2019 3:47:09 PM com.github.kostyasha.yad.DockerCloud provision
INFO: Asked to provision load: '1', for: 'JNLP' label
Jul 04, 2019 3:47:09 PM com.github.kostyasha.yad.DockerCloud provision
INFO: Will provision 'mydtr/slave_node:windows-jnlp', for label: 'JNLP', in cloud: 'My Cloud'
Jul 04, 2019 3:47:09 PM com.github.kostyasha.yad.DockerCloud addProvisionedSlave
INFO: Provisioning 'mydtr/slave_node:windows-jnlp' number '0' on 'My Cloud'; Total containers: '0'
Jul 04, 2019 3:47:09 PM com.github.kostyasha.yad.commons.DockerPullImage execInternal
INFO: Pulling image 'mydtr/slave_node:windows-jnlp'. This may take awhile...
Jul 04, 2019 3:47:10 PM com.github.kostyasha.yad.DockerCloud lambda$provision$0
SEVERE: Error in provisioning; template='dockerslavetemplate[configversion=1,maxcapacity=10,id=xxxxxxxxx,labelstring=jnlp,launcher=com.github.kostyasha.yad.launcher.dockercomputerjnlplauncher@61614138[launchtimeout=120,user=,jvmopts=,slaveopts=,jenkinsurl=,nocertificatecheck=false,reconnect=false,launcher=<null>],remotefs=/,mode=exclusive,retentionstrategy=com.github.kostyasha.yad.strategy.dockeronceretentionstrategy@1fbbf3d7],connector=<null>],createContainer=DockerCreateContainer[command=,commands=<null>,entrypoint=<null>,hostname=,dnsHosts=[],volumes=[\\.\\pipe\\docker_engine:\\.\\pipe\\docker_engine],volumesFrom=[],environment=[constraint:node.platform.os==windows],bindPorts=,bindAllPorts=false,memoryLimit=0,cpuShares=<null>,privileged=false,tty=false,macAddress=<null>,extraHosts=[],networkMode=<null>,devices=[],cpusetCpus=,cpusetMems=,links=[],dockerLabels=[],shmSize=0,restartPolicy=DockerContainerRestartPolicy[policyName=NO,maximumRetryCount=0],workdir=,user=],stopContainer=DockerStopContainer[timeout=10,connector=<null>],removeContainer=DockerRemoveContainer[removeVolumes=false,force=false,connector=<null>]],nodeProperties=<null>]' for cloud='My Cloud'
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.exception.DockerClientException: Could not pull image: image operating system "windows" cannot be used on this platform
at com.github.kostyasha.yad_docker_java.com.github.dockerjava.core.command.PullImageResultCallback.checkDockerClientPullSuccessful(PullImageResultCallback.java:96)
at com.github.kostyasha.yad_docker_java.com.github.dockerjava.core.command.PullImageResultCallback.throwFirstError(PullImageResultCallback.java:111)
at com.github.kostyasha.yad_docker_java.com.github.dockerjava.core.async.ResultCallbackTemplate.awaitCompletion(ResultCallbackTemplate.java:94)
at com.github.kostyasha.yad_docker_java.com.github.dockerjava.core.command.PullImageResultCallback.awaitSuccess(PullImageResultCallback.java:124)
at com.github.kostyasha.yad.commons.DockerPullImage.execInternal(DockerPullImage.java:166)
at com.github.kostyasha.yad.commons.DockerPullImage.exec(DockerPullImage.java:125)
at com.github.kostyasha.yad.DockerCloud.provisionWithWait(DockerCloud.java:229)
at com.github.kostyasha.yad.DockerCloud.lambda$provision$0(DockerCloud.java:135)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:7)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Brief description of the architecture:
The cluster is running on Docker Swarm 18.09.1 and the node composition is:
3 Linux managers
1 Linux Worker
1 Windows Worker
The jenkins version is 2.150.2
Cloud section from config.xml:
The multi-os docker swarm that I’m working on is configured using platform specific labels (see last comment of this thread for reference). Bellow is the relevant subset of the windows worker node’s configuration:
Additionally, I have successfully deployed the slave as a service and saw it being dispatched to the correct machine. The service’s configuration is as follows:
I’ve tried to create a docker template for a simple windows-slave that must work along side already defined templates that make use of a linux-slave image(s). However, I am having the following error:
Brief description of the architecture:
The cluster is running on Docker Swarm 18.09.1 and the node composition is:
The jenkins version is 2.150.2
Cloud section from config.xml:
The multi-os docker swarm that I’m working on is configured using platform specific labels (see last comment of this thread for reference). Bellow is the relevant subset of the windows worker node’s configuration:
Additionally, I have successfully deployed the slave as a service and saw it being dispatched to the correct machine. The service’s configuration is as follows:
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: