add 2 or more "Invoke Maven" build steps for freestyle jobs

315 views
Skip to first unread message

pa...@autoagentframework.com

unread,
Jan 15, 2014, 11:28:23 AM1/15/14
to job-dsl...@googlegroups.com
Hello All, 
I'm having trouble trying to add 3 "Invoke Maven top level targets" build steps (it / builders / hudson.tasks.Maven / mavenName ) etc… to dsl generated freestyle jobs.

Since I am using freestyle templates (needed for other reasons) I believe the only dsl builtin method at my disposal is maven(goals,pom).
This is obviously limited to two input params only.  

We have about 5 maven installs on our build machine and I need to ability to create jobs that have multiple build steps with at a minimum different goals, but also differing mavenName version, properties file and jvm options which all can be defined in the job configuration in UI but not job-dsl using maven(goals,pom).

I have tried doing this using the xml, but seems to be limited to adding one entry build steps only for each mavenName version. I.E. "Invoke Maven 3" and "Invoke Maven top level targets"  

So with jb-dsl builtin, I can create many of the same build steps, with only two configurable options. And with the xml I can set all the available build step options, But can only set one build step.

Is there a solution I am not finding or understanding? 

thank you, 
paul

Daniel Spilker

unread,
Jan 22, 2014, 3:03:40 PM1/22/14
to job-dsl...@googlegroups.com
Hi Paul,

the next release 1.20 will contain Maven step enhancements, which should fix your problems.

Have a look at https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-reference#maven-1

Do you need any other options which have not been added yet?

Regards,
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-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/da9a06f2-01fb-45a6-9b73-7868a122a44f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

    daniel spilker

    ma...@daniel-spilker.com
    +49.179.1093202
    geschwister-scholl-straße 62, 20251 hamburg
    http://daniel-spilker.com

pa...@autoagentframework.com

unread,
Jan 22, 2014, 3:24:38 PM1/22/14
to job-dsl...@googlegroups.com
That Great Daniel. Thank you.
This covers the options that we would need. We don't change global or maven settings.xml files within a given maven install, so no need.
Looking forward to it. Much appreciated.

Paul
Reply all
Reply to author
Forward
0 new messages