build using the maven wrapper (mvnw)

487 views
Skip to first unread message

David Zeigler

unread,
Feb 23, 2017, 1:08:30 PM2/23/17
to job-dsl-plugin
I'd like to configure a job using the maven wrapper (mvnw). The wrapper works the same way as gradlew but wraps maven instead. I'd prefer to use the wrapper so that I have more control over which version of maven is used for the build than I would if I had to rely on the versions installed in jenkins, which I do not have control over. 

I see that the gradle dsl supports useWrapper but I do not see that option for the maven jobs. 

Is there a recommended way to use the maven wrapper? 
Freestyle job is an option but a lot of the functionality that the maven job provides would not be available out of the box with that approach, right?

Thanks,
David

Daniel Spilker

unread,
Feb 23, 2017, 4:02:12 PM2/23/17
to job-dsl...@googlegroups.com
Try to configure the job manually with the UI. If you do not know how to configure the job, ask on the Jenkins Users mailing list.

Translate the config to Job DSL if the job works as expected. If the built-in DSL does not provide the necessary config options, try the Automatically Generared DSL and the Configure Block.

Daniel


--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/4a12f142-a4dc-47ef-a2dd-43a512c2390b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages