Error doing build in Jenkins
I'm having a problem setting up build in jenkins follows errors:
This happens in the job configuration "in the build step", where I choose the version of maven and just below I need to configure the" goals " but in this step I can not solve.
Follows image of the error.
2 answers
As I found what I needed I will post here for further questions, I will leave a bonus also because the GlassFish plugin does not catch so I used the post haus.
Below is how my build was configured:
Here follows the configuration snippet of my pom.xml with Haus post, since jenkins ' GlassFish plugin doesn't work.
<!-- Cargo Code Haus Glassfish -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.3.3</version>
<configuration>
<container>
<containerId>glassfish3x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>localhost</cargo.hostname>
<cargo.remote.username>wellington</cargo.remote.username>
<cargo.remote.password>wellington</cargo.remote.password>
<cargo.remote.port>8080</cargo.remote.port>
<cargo.glassfish.domain.name>/Jenkins</cargo.glassfish.domain.name>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<context>/Jenkins</context>
</properties>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>3.2-b06</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
When working with continuous integration you who are configuration analyst will not always be allowed to change the pom.xml of projects. So, the best way to deploy the projects is to use the Jenkins plugin that does this work. The suggestion is that you use the Deploy plugin. If you need to, follow this plugin installation guide.