How can I make Jenkins deploy my project to JBoss EAP(AS7)?
I see that Jenkins can deploy a project to JBoss 5.x if it builds ok but how can I make it deploy to AS7 or EAP if it builds ok? Can someone please tell me if this can be done.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the official JBoss Application Server Maven Plugin.
Attach it to the
installphase and configure Jenkins to executemvn clean install. If you don’t feel comfortable attaching the execution, you can call it directly:mvn jboss-as:deployHere is an example of a build setup:
EDIT Jenkins config – after you create a maven project, there is a setting for what goals to execute. Search for the Build config, and there, for the input labeled goals and options – enter the goals into this input.
Configuring the Jboss AS plugin – see the
<configuration>part in the pom snippet above – you can set the<hostname>to 127.0.0.1 to test locally.