How to trigger a build from an upstream project hosted on a remote Jenkins?

Sometimes, you need to trigger a build of your job from a job hosted on a remote Jenkins. In this case, you cannot use the “build after other projects” trigger.

The best option is to install the URL trigger plugin.

Then in your job configuration, add an URL trigger on the following URL: https://a-jenkins-server.org/job/job-name/lastSuccessfulBuild/buildNumber.

Of course, you need to substitute a-jenkins-server and job-name with appropriate values.

Leave a Reply