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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Ramdinesh J P

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 !!

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

Daniel Butler

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.

 

 

From: [hidden email]
Sent: 18 March 2019 10:20
To: [hidden email]
Subject: How to Trigger back the Jenkins job from the job who triggered it?

 

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 !!

--
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 [hidden email].
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.

 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5c8f8235.1c69fb81.50321.7de6%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.