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 pick up so I used the haus post.
Below is how my build was configured:
Here is the configuration section of my pom.xml with the haus post, since the plugin for jenkins glassfish 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>