2016-10-08 178 views
2

我試圖將一個war文件作爲jenkins服務器中的作業部署到wildfly服務器。 jenkins-application/server本身就是一個部署在同一個野蠻服務器上的war文件。Jenkins:向Wildfly部署war文件失敗

到目前爲止,我設法自動化了maven構建。

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

我使用WildFly 9.0.2決賽。

詹金斯版本是: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 

我在做什麼錯?

回答