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.

tech-zone
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.