gpt4 book ai didi

java - 无法使用 Deploy to container Plugin 从 jenkins 对 tomcat 部署 war

转载 作者:行者123 更新时间:2023-11-28 22:17:18 26 4
gpt4 key购买 nike

在成功构建到 tomcat 7 后,我正在学习 face 并尝试配置 jenkins 和部署 war。但是,我能够成功创建和构建作业。我正在使用 Deploy to container Plugin 将我的 war 文件部署到 tomcat 位置,但它部署在用户文件夹中 c 驱动器的 .m2 文件夹中。

作业的控制台输出

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.433 s
[INFO] Finished at: 2016-12-10T22:13:16+05:30
[INFO] Final Memory: 17M/49M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving E:\myProj\test\trunk\web\pom.xml to com.test/web/0.0.1-SNAPSHOT/web-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving E:\myProj\test\trunk\web\target\web.war to com.er4u/web/0.0.1-SNAPSHOT/web-0.0.1-SNAPSHOT.war
channel stopped
Finished: SUCCESS

tomcat configuration in job

最佳答案

这是我的日志:

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.148s
[INFO] Finished at: Wed Jan 18 09:38:59 EST 2017
[INFO] Final Memory: 20M/192M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /var/lib/jenkins/jobs/kft-activiti-demo/workspace/pom.xml to me.kafeitu.demo/kft-activiti-demo/v1/kft-activiti-demo-v1.pom
[JENKINS] Archiving /var/lib/jenkins/jobs/kft-activiti-demo/workspace/target/kft-activiti-demo.war to me.kafeitu.demo/kft-activiti-demo/v1/kft-activiti-demo-v1.war
channel stopped
Deploying /var/lib/jenkins/jobs/kft-activiti-demo/workspace/target/kft-activiti-demo.war to container Tomcat 7.x Remote
Redeploying [/var/lib/jenkins/jobs/kft-activiti-demo/workspace/target/kft-activiti-demo.war]
Undeploying [/var/lib/jenkins/jobs/kft-activiti-demo/workspace/target/kft-activiti-demo.war]
Deploying [/var/lib/jenkins/jobs/kft-activiti-demo/workspace/target/kft-activiti-demo.war]
Finished: SUCCESS

关于java - 无法使用 Deploy to container Plugin 从 jenkins 对 tomcat 部署 war,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41077974/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com