Run Jenkins job all the time Run Jenkins job all the time jenkins jenkins

Run Jenkins job all the time


There are two different job configurations for that:

  1. Build Triggers -> Build after other projects are built
  2. Add a post-build action Build other projects

In both cases, you can enter your own Project, so it'll be triggered again every time a build is completed. You can also specify if this should be done only while the project is stable.

There is however one (probably more) drawback in this approach, which is that it'll create enormous overview pages, where all build triggers are listed:

trigger history

So i'd recommend to do something else and for example use the Jenkins API to trigger a new build. There are many ways to do that, one simple example is adding a build step Execute shell and do something like:

curl -X POST http://localhost:8080/job/$JOB_NAME/build

If you have configured the Jenkins URL, you could also use $JOB_URL. You can also add post parameters to trigger a parameterized build.