Deploy in to jboss EAP 6.4 from jenkins

强颜欢笑 提交于 2019-12-11 14:16:42

问题


I wanted to deploy in to jboss eap from jenkins.I have configured a job which pulls the artifact from nexus repository in to workspace using repository connector plugin.I wanted to do the deployment in to jboss EAP from jenkins.Is there any way i can acheive it?

I think one way could be to use the jboss-as-maven-plugin.is there any way i could tell jboss-as-maven-plugin to take the war from workspace location?

is there any other option available?


回答1:


You can configure maven plugin like as:

<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<configuration>
    <execute-commands>
        <commands>
            <command>deploy target/core-services.war</command>
    </execute-commands>
     <hostname>localhost</hostname>
     <username>{your username}</username>
     <password>{your passwprd}</password>
</configuration>
</plugin>


来源:https://stackoverflow.com/questions/48290999/deploy-in-to-jboss-eap-6-4-from-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!