无法使用Deploy to container Plugin从jenkins在tomcat上部署war
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法使用Deploy to container Plugin从jenkins在tomcat上部署war相关的知识,希望对你有一定的参考价值。
我正在学习面子,并在成功构建到tomcat 7之后尝试配置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 est runkwebpom.xml to com.test/web/0.0.1-SNAPSHOT/web-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving E:myProj est runkweb argetweb.war to com.er4u/web/0.0.1-SNAPSHOT/web-0.0.1-SNAPSHOT.war
channel stopped
Finished: SUCCESS
答案
这是我的日志:
[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
以上是关于无法使用Deploy to container Plugin从jenkins在tomcat上部署war的主要内容,如果未能解决你的问题,请参考以下文章
How To Deploy OpenShift Container Platform 4.8 on KVM
How To Deploy OpenShift Container Platform 4.8 on KVM
Jenkins 使用 Deploy to Container 插件部署到 JBoss EAP7
Hudson + SVN + Maven 持续集成实现自动化编译打包部署(over SSH 和 Deploy war/ear to a container 两种部署方式)