jenkins - 从 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.
解决方案
推荐阅读
- django - Django Rest Auth 密码重置链接包含 html 代码
- javascript - 在更新数据期间将标头发送到节点js中的客户端后无法设置标头
- vb.net - 如何通过 invoiceno 将数据表记录检索到 datagriview 订单
- angular - 在 Angular 8 中处理两个以上的条件
- c++ - 是否可以使用 STL 算法重写我的代码?
- forms - Symfony 4.4 FormType 验证问题
- php - 如何在 laravel 中以编辑形式获取旧图像?代码是什么?
- java - 在“super()”构造函数中使用“this”关键字
- spring-integration - JdbcMetadataStore -bad SQL grammar
- docker - SSH 直接进入 Docker 实例