How to skip a job in Jenkins if another job is in a failed state

I have two Jenkins jobs for the same project:

  • a continuous build task that will run whenever new commits appear
  • a nightly build task triggered by time that does the same, but also some extra steps that take a very long time (e.g. slow tests, generating Sandcastle documentation, etc.)

When a continuous build fails at the end of the day, I don't want the nightly build to start; I already know this will fail. How do I set this up in Jenkins?

I've already looked at using conditional build steps : this way I could skip the build steps, but the build will still run. I do not want a new missed or failed build to appear in history; I just want to skip the nightly build altogether.

+3


source to share


1 answer


Have you tried building a build result trigger plugin - https://wiki.jenkins-ci.org/display/JENKINS/BuildResultTrigger+Plugin we use it for a similar purpose



+3


source







All Articles