java – Jenkins:将war文件部署到Wildfly失败了
作者:互联网
我正在尝试将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.
这是我正在使用的配置:
我在控制台输出中收到此错误:
[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
我究竟做错了什么?
解决方法:
可能是因为这与以下错误有关:https://issues.jenkins-ci.org/browse/JENKINS-33504?
标签:java,jenkins,maven,deployment,jenkins-plugins 来源: https://codeday.me/bug/20190828/1755767.html