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 Haus post.
Below follows how my build was configured:
Here follows the configuration snippet of my pom.xml with the Haus post, since the glassfish plugin for Jenkins does not 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>
You have set the Goals in your job configuration?
– Bernardo Botelho
@Bernardobotelho managed to fix this error! was so clean install cargo:deploy thanks for your attention.
– Wellington Avelino
Good! You can answer your own question, so someone with that same problem will have more ease in finding the answer.
– Bernardo Botelho