How to Trigger back the Jenkins job from the job who triggered it?

10 views
Skip to first unread message

Ramdinesh J P

unread,
Mar 18, 2019, 6:20:45 AM3/18/19
to Jenkins Users

jenkins_job.PNG

Here, three different jobs triggers the JOB X. Requirement is, on completion of JOB X, it should trigger back the job who triggered it.

For example, if JOB X is triggered by JOB B, it should trigger back only the JOB B.

Things I have tried:

  1. I have used "build another job" option from Post build action, where I can mention the list of jobs needs to be triggered.

  2. It is not satisfying my requirement as it is triggering all the JOBS listed in the box.

Kindly help !!

Daniel Butler

unread,
Mar 18, 2019, 7:34:26 AM3/18/19
to jenkins...@googlegroups.com

I’m assuming you’re meaning freestyle jobs? Usually you’d have a parameter in Job X with the upstream job name that you can then use in the Parameterized Build Trigger to pass the parameter to Job X.

What will be in place however to stop this ending up in a build loop? Otherwise Job B is going to trigger Job X which will trigger Job B which will trigger Job X.......

 

Regards,

Daniel.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f9ad64f3-1ae9-40bd-9148-3721421884e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

jenkins_job.PNG
Reply all
Reply to author
Forward
0 new messages