Error Building on Jenkins

Asked

Viewed 1,176 times

2

I’m having a problem configuring the build in Jenkins follows errors:

this happens in the job " configuration in the build step", where I choose the version of Maven and then below I need to configure the "Goals" but in this step I cannot solve.

Follow screenshot of the error.

inserir a descrição da imagem aqui

  • You have set the Goals in your job configuration?

  • @Bernardobotelho managed to fix this error! was so clean install cargo:deploy thanks for your attention.

  • Good! You can answer your own question, so someone with that same problem will have more ease in finding the answer.

2 answers

2


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:

inserir a descrição da imagem aqui

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>

1

When working with continuous integration you are not always allowed to change the projects' pom.xml. So, the best way to deploy projects is to use the Jenkins plugin that does this job. The suggestion is that you use the Deploy plugin. If you must, follow this installation guide of the plugin.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.