remoting.jar文件在jenkins master上的位置

fcy6dtqo  于 2023-08-03  发布在  Jenkins
关注(0)|答案(2)|浏览(174)

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

[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

字符串

xu3bshqb

xu3bshqb1#

它似乎被捆绑在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

i1icjdpr

i1icjdpr2#

当您配置一个新的永久节点,这是手动连接,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 ""

或者从agent命令行运行,密钥保存在文件中:(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 ""

或者从agent命令行运行,密钥保存在文件中:(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 ""

相关问题