为什么Jenkins部署到容器不会触发

时间:2018-06-18 03:26:12

标签: tomcat jenkins

我正在使用Jenkins post build将war包部署到Apache tomcat 8.0.52,但是Jenkins没有触发" Deploy to Container步骤"。命令输出没有信息或错误信息要注销,这是我的构建日志:

[INFO] Assembling webapp [cqnews-cms] in [/var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/target/cqnews-cms-1.0.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [/var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/profile/dev] to [/var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/target/cqnews-cms-1.0.0-SNAPSHOT]
[INFO] Copying webapp resources [/var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/src/main/webapp]
[INFO] Webapp assembled in [2158 msecs]
[INFO] Building war: /var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/target/cqnews-cms.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ cqnews-cms >>>
[INFO] 
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ cqnews-cms <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ cqnews-cms ---
[INFO] Building jar: /var/lib/jenkins/workspace/xycq-web-ci/cqnews-cms/target/cqnews-cms-1.0.0-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.559 s
[INFO] Finished at: 2018-06-18T11:07:41+08:00
[INFO] ------------------------------------------------------------------------
[PostBuildScript] - Executing post build scripts.
[PostBuildScript] - Executing the script /home/jenkins-bak/a.sh with parameters [].
[xycq-web-ci] $ /bin/sh -xe /tmp/jenkins1307617786299511400.sh
+ echo aa
Finished: SUCCESS

post script插件是execute,它用于测试post Jenkins执行工作流。这是我部署到容器配置:

Jenkins deploy configuration

为什么war包没有部署到tomcat?并且没有注销执行部署步骤。为什么会发生这种情况?如何解决?

0 个答案:

没有答案