Home > Enterprise >  JUnit tests not getting skipped on Jenkins when -DskipTests argument is passed
JUnit tests not getting skipped on Jenkins when -DskipTests argument is passed

Time:05-06

I have one Jenkins job configured to build Maven project. I have to skip tests for some reason so I am trying to skip tests using -DskipTests argument but somehow its not working.

Is there any other way to skip JUnit tests on Jenkins?

CodePudding user response:

I was facing a similar issue. I had to add the below argument to skip JUnit tests.

-DskipTests -Darguments="-DskipTests"

It worked for me.

  • Related