0

How can I configure a Jenkins Maven job to be run with Maven debugging output enabled using Jenkins Job DSL?

There is mavenOpts for specifying options to the JVM and properties for specifying Maven properties, but there doesn't seem to be a way for passing arbitrary command line arguments, like -X for debugging output. What am I missing?

Tuure Laurinolli
  • 4,016
  • 1
  • 22
  • 21

1 Answers1

0

I ended up with a configuration like:

    steps {
      maven {
        mavenOpts("-Xmx1024M")
        goals("-X")
        goals("clean deploy")
      }
    }

The documentation for goals quite clearly states that it's possible to pass in arbitrary command line arguments to Maven using it, but I had passed over it, probably because of its name.

Tuure Laurinolli
  • 4,016
  • 1
  • 22
  • 21