I need to trigger a Job from another Scheduler and want to receive the status of the triggered Job after it finishes. Sure it would be possible to create a status file or such, but it would be convenient to trigger the Job from a script or per httpRequest and wait for some kind of exit or return code. Is that possible?
Asked
Active
Viewed 915 times
1
-
1Possible duplicate of [Check Jenkins job status after triggering a build remotely](https://stackoverflow.com/questions/28311030/check-jenkins-job-status-after-triggering-a-build-remotely) – Akshay barahate May 13 '19 at 10:48
-
Yep, the answer is in there. – Adam vonNieda May 13 '19 at 15:40
-
The Aswer seems to be Jenkins CLI – Sirim May 13 '19 at 18:02
1 Answers
0
For this, you have to use Build Authorization Token Root
Jenkins plugin
It will allow you to run Jenkins build remotely.
Please check my article : https://medium.com/appgambit/trigger-jenkins-job-from-slack-5b07b6131e25
But yes you can skip slack integration and just use API for triggering particular job.
Or if you want to run your job after another job is complete or success you have to use "Build after other projects are built"

Bhatasana Prashant
- 159
- 6