Establish relationship between two Jenkins Jobs available on different Jenkins server Establish relationship between two Jenkins Jobs available on different Jenkins server jenkins jenkins

Establish relationship between two Jenkins Jobs available on different Jenkins server


You can use Jenkins API for remote trigger of Job.Say you have job on DEV_JOB on JENKINS_1, add a penultimate step(or upstream/downstream project having only this step) which invokes TEST_JOB using remote API call of JENKINS_2 server.Example command would be

$(curl --user "username:password" "http://JENKINS_2/job/TEST_JOB/buildWithParameters?SOMEPARAMETER=$SOMEPARAMETER")

username:password is a valid user on JENKINS_2. Avoid using your own account here but rather a 'build trigger' account that only has permissions to start those jobs.