naveen kumar
naveen kumar

Reputation: 1

Need help to schedule jobs in Jenkins

I have scheduled my job in jenkins as "0 0-12/3 * * 1-3". This will run monday to wednesday from 12am to 12pm for every 3 hours.

My question is, during the above interval if any build execution is PASS, then it should skip remaining scheduled interval for that week!!!

How to do this? can anyone Help me?

Upvotes: 0

Views: 43

Answers (1)

Nico Haase
Nico Haase

Reputation: 12092

You could try working the other way: Schedule your job to run only once per week. Then add either the Naginator or Periodic Reincarnation plugin to your Jenkins server to restart a failed build.

If that should be more liberal (as in: don't always start the job on the first possible day of the week, but rather check if a week has elapsed since the last run), you could try the following:

Upvotes: 1

Related Questions