我正在学习面子,并在成功构建到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\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
这是我的日志:
[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