Jenkins Parameterized Trigger plugin usage in "Post Build actions"

954 views
Skip to first unread message

Deb

unread,
Jan 23, 2016, 7:53:42 AM1/23/16
to job-dsl-plugin
Hi there,

At the outset I am so delighted to have started using this Jenkins plugin, wish I had discovered it earlier.

I am currently facing an issue (which could be a newb one) for the Jenkins Parameterized Trigger plugin. I see that the when adding the Job steps, the resulting job has the trigger added to build steps, is there a way to add the steps to the "Post Build Actions" section? Its possible to do so via GUI of course (please see the attached image) but I don't see any mention of adding "postBuildSteps" under job steps in DSL. Your help is much appreciated.

Best Regards,

Deb


parameterized-trigger-dsl.JPG

Rui Fernando Hayashi

unread,
Jan 24, 2016, 10:31:54 AM1/24/16
to job-dsl...@googlegroups.com
Post build actions in a free style job are added inside the "publishers" method. See: https://jenkinsci.github.io/job-dsl-plugin/#path/freeStyleJob-publishers-downstreamParameterized

For maven jobs there is a "postBuildSteps" method: https://jenkinsci.github.io/job-dsl-plugin/#path/mavenJob-postBuildSteps

Rui

--
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/e5a5a444-3e20-4dac-a197-b67652bc6b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deb

unread,
Jan 25, 2016, 5:09:52 AM1/25/16
to job-dsl-plugin
Hi Rui,

Thanks a ton, exactly what I needed and it works as expected.

BR,

Deb

susmit...@innovapptive.com

unread,
Feb 6, 2017, 1:34:50 AM2/6/17
to job-dsl-plugin

Hello,
  
   My requirement is, to trigger a build in jenkins by using  a PHP form. i am very new to jenkins. i dont know how to implement it.Can anyone help me. it will be grateful. 




Reply all
Reply to author
Forward
0 new messages