Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one Jenkins Trigger a job on a remote jenkins

Tags:

jenkins

I have 2 Jenkins hosts, and would like First Jenkins to trigger a job on remote Jenkins based on "SUCCESS" in result on the first one. I have looked at various plugins , but they all seem to indicate ONE Jenkins host, where multiple jobs can be chained in this manner.

like image 745
kamal Avatar asked Jul 19 '12 12:07

kamal


2 Answers

You could set up a downstream job on host1 that only builds if first job on host1 succeeds. In this job you would trigger a remote build much like i described it in this answer

like image 59
Arnestig Avatar answered Oct 31 '22 14:10

Arnestig


Meanwhile, a jenkins plugin became available which makes it a lot easier:

https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Remote+Trigger+Plugin

like image 32
tobi42 Avatar answered Oct 31 '22 12:10

tobi42