Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skip tests in Jenkins

Tags:

maven

jenkins

I've set up a build on Jenkins for a Maven project, and I would like to build it without running any of the tests. I've tried entering "clean install -DskipTests" in the goals field, like this:

enter image description here

But it doesn't work. What am I doing incorrectly?

Note: I want to skip the tests without touching the pom. I have a separate build that DOES run the tests.

like image 529
James Dunn Avatar asked Mar 19 '14 17:03

James Dunn


People also ask

How do I skip test cases in Jenkins?

We can simply skip or ignore them. This behavior is specified in Jenkins. For a Maven project we simply set a parameter in the JVM options of our Maven configuration. This will disable or skip all of the tests in this project.

How do you skip a pipeline test?

You can try the following ways: Set maven. test. skip=true.

How do you skip test cases in build?

To skip running the tests for a particular project, set the skipTests property to true. You can also skip the tests via the command line by executing the following command: mvn install -DskipTests.


1 Answers

The problem is that I omitted =true. I was able to build without running tests by entering:

clean install -DskipTests=true 
like image 84
James Dunn Avatar answered Sep 18 '22 00:09

James Dunn