简体   繁体   English

如何在 JENKINS 中从 Linux Master 启动 Windows Slave

[英]How to launch Windows Slave from Linux Master in JENKINS

What I am trying to do: Create a Windows Slave from a Linux (Ubuntu) Master on Jenkins.我想要做的是:在 Jenkins 上从 Linux (Ubuntu) Master 创建一个 Windows Slave。

Jenkins is inside a container (Docker). Jenkins 在一个容器 (Docker) 中。

I followed the step-by-step here: https://scmquest.com/jenkins-windows-slave-configuration-with-screenshots/我按照这里的步骤进行操作: https : //scmquest.com/jenkins-windows-slave-configuration-with-screenshots/

And when I tried to launch the agent, I have an error like this: enter image description here当我尝试启动代理时,出现如下错误:在此处输入图片描述

Okay I find out how.好的,我知道怎么做。

I did docker container ls then under PORT there's xxxx:8080->8080/tcp, xxxx:50000->50000/tcp.我做了docker container ls然后在 PORT 下有 xxxx:8080->8080/tcp, xxxx:50000->50000/tcp。 I set the port to 500000 in Jenkins->Configure Global Security->Agent.我在 Jenkins->Configure Global Security->Agent 中将端口设置为 500000。

Now I have another error from java.现在我有另一个来自java的错误。 java.lang.NoClassDefFoundError:java/sql/Date java.lang.NoClassDefFoundError:java/sql/Date

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM