Jenkins:将战争文件部署到Wildfly失败了

时间:2016-10-08 20:42:16

标签: java maven jenkins deployment jenkins-plugins

我正在尝试将war文件部署到wildfly服务器作为jenkins服务器中的作业。 jenkins-application / server本身是一个war文件,它部署在同一个wildfly-server上。

到目前为止,我设法自动化了maven构建。

对于部署,我使用WildFly Deployer插件: https://wiki.jenkins-ci.org/display/JENKINS/WildFly+Deployer+Plugin

我正在使用WildFly 9.0.2 Final。

Jenkins版本是:2.7.4。

这是我正在使用的配置:

enter image description here

我在控制台输出中收到此错误:

[INFO] Installing C:\Users\laudatio\.jenkins\workspace\game-of-life-packaging\target\jsfapplication.war to C:\Users\laudatio\.m2\repository\com\java\ee\jsf\1.0\jsf-1.0.war
[INFO] Installing C:\Users\laudatio\.jenkins\workspace\game-of-life-packaging\pom.xml to C:\Users\laudatio\.m2\repository\com\java\ee\jsf\1.0\jsf-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.638 s
[INFO] Finished at: 2016-10-08T22:24:41+02:00
[INFO] Final Memory: 17M/196M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving C:\Users\laudatio\.jenkins\workspace\game-of-life-packaging\pom.xml to com.java.ee/jsf/1.0/jsf-1.0.pom
[JENKINS] Archiving C:\Users\laudatio\.jenkins\workspace\game-of-life-packaging\target\jsfapplication.war to com.java.ee/jsf/1.0/jsf-1.0.war
channel stopped
FATAL: Unable to initialize command context.
Build step 'Deploy WAR/EAR to WildFly' marked build as failure
Finished: FAILURE

我做错了什么?

1 个答案:

答案 0 :(得分:5)

这可能与以下错误有关:https://issues.jenkins-ci.org/browse/JENKINS-33504