首页 > 解决方案 > 从 Jenkins 中的代理节点部署

问题描述

我在从节点中有一个 WAR 文件并尝试将其部署在 Tomcat 上,但每次都失败。当我建立在master上时,没有问题。已经尝试过 ssh,它工作得非常好。

在执行外壳中:

sshpass -p "pswd" scp target/xyz.war tomcat@172.17.0.2:/home/devops/Distros/apache-tomcat-8.5.66/webapps

控制台输出显示:

$ /bin/sh -xe /tmp/jenkins12343233332222.sh
+ sshpass -p "pswd" scp target/xyz.war tomcat@172.17.0.2:/home/devops/Distros/apache-tomcat-8.5.66/webapps
Build step 'Execute shell' marked build as failure.

标签: jenkinsdeploymenttomcat8jenkins-slave

解决方案


推荐阅读