0

I have a job in Jenkins that I only want to run on Saturday, but it must only be ran after another job is finished (this is a report job, so data must be in place).

I understand how to use the Jenkins con expressions, but can I chain that in sequence with another job? The idea being once the first job is completed, the date is checked. If it's Saturday, run the second job.

Can Jenkins do that, or is it something I need to write via a script?

1 Answers1

0

You can use Jenkin's Flexible Publish Plugin to set conditional build step: https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin

Kiem Nguyen
  • 2,467
  • 3
  • 16
  • 17