2
votes

In my declarative Jenkinsfile, I am invoking maven with this block sourced from https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins

           rtMavenRun (
                tool: 'maven-3.6.0',
                pom: 'pom.xml',
                goals: 'clean test',
                resolverId: 'maven-resolver-id',
                deployerId: 'maven-deployer-id',
                buildNumber: '99',
                buildName: 'my-build'
            )

When it runs, the output is flooded with lots of 'Progress' entries. The way to turn that off is the use -B on the mvn command line.

How to do so using rtMavenRun() ?

I tried using the 'options:' parameter found https://jenkins.io/doc/pipeline/steps/artifactory/#rtmavenrun-run-artifactory-maven but that only defines JVM parameters rather than maven parameters.

1
Can you change the 'goals' parameter to have value '-B clean test'? - user944849
@user944849 that did it! submit an answer and you get the credit. Thanks - Stevko

1 Answers

3
votes

Change the 'goals' parameter to have value '-B clean test'.