jenkins控制器上的remoting.jar文件位置

plicqrtu  于 12个月前  发布在  Jenkins
关注(0)|答案(2)|浏览(229)

我在本地CentOS 7.0机器上使用的是jenkins 2.319版本。当我向Jenkins服务器添加新的代理/节点时,我可以看到它将remoting.jar文件从控制器复制到从节点,但我在控制器服务器上看不到remoting.jar文件。有人能帮助我在控制器节点上定位此文件吗?

[03/08/22 01:20:42] [SSH] Starting agent process: cd "/var/jenkins" && java  -jar remoting.jar -workDir /var/jenkins -jar-cache /var/jenkins/remoting/jarCache
Mar 08, 2022 6:20:58 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /var/jenkins/remoting as a remoting work directory
Mar 08, 2022 6:20:58 AM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /var/jenkins/remoting

字符串

3xiyfsfu

3xiyfsfu1#

它似乎被捆绑在jenkins.war文件中。
在我的jenkins安装中,有一个已经解压缩的jenkins.war文件的副本:
第一个月
远程处理jar可以在以下位置找到:
/var/lib/jenkins/%C/jenkins/war/WEB-INF/lib/remoting-[version].jar
还有一个未解压缩的war文件,可以在以下位置找到:
/usr/share/java/jenkins.war
您可以将其解压缩到一个目录中,然后在以下位置找到远程处理jar:
WEB-INF/lib/remoting-[version].jar

snz8szmq

snz8szmq2#

当您配置一个新的永久节点要手动连接时,Jenkins将给予此页面,其中包含如何连接该节点的说明

从代理命令行运行:(Unix)

curl -sO https://jenkins-url/jnlpJars/agent.jar
java -jar agent.jar -jnlpUrl https://jenkins-url/computer/jenkinsAgentName/jenkins-agent.jnlp -secret 4172ee4968xxx4cf888 -workDir ""

字符串

从代理命令行运行:(Windows)

curl.exe -sO https://jenkins-url/jnlpJars/agent.jar
java -jar agent.jar -jnlpUrl https://jenkins-url/computer/jenkinsAgentName/jenkins-agent.jnlp -secret 4172ee4968xxx4cf888 -workDir ""

或者从代理命令行运行,密码存储在文件中:(Unix)

echo 4172ee4968xxx4cf888 > secret-file
curl -sO https://jenkins-url/jnlpJars/agent.jar
java -jar agent.jar -jnlpUrl https://jenkins-url/computer/jenkinsAgentName/jenkins-agent.jnlp -secret @secret-file -workDir ""

或从代理命令行运行,密钥存储在文件中:(Windows)

echo 4172ee4968xxx4cf888 > secret-file
curl.exe -sO https://jenkins-url/jnlpJars/agent.jar
java -jar agent.jar -jnlpUrl https://jenkins-url/computer/jenkinsAgentName/jenkins-agent.jnlp -secret @secret-file -workDir ""

相关问题