Schedule periodic builds in jenkins till a specific date

Shashi Kumar Raja

I want to schedule periodic build in jenkins which should run once daily at 9 am till a specific day (example, if today is 1st of dec then it should run from 1st to 7th of dec only)

For running every day at 9 am the script is-

H 9 * * *

What should I add to run it till specific date only?

Pieter Meiresone

Cron expressions support range selectors. For your specific example, you can specify that it should run from the 1st to 7th of december only:

* 9 1-7 12 *

“At 09:00 on every day-of-month from 1 through 7 in December.”

You can easily test your expression here. Since you can't specify the year in a cron expression, you will have to remove trigger manually afterwards.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to schedule builds in VSTS on specific time?

From Dev

Schedule a selector for a specific date/time

From Dev

wp_schedule_single_event schedule with specific date?

From Dev

Is it possible to schedule a Liquidsoap source at a specific date and time?

From Dev

node-schedule not working with send at specific date rule

From Dev

What is the correct way to schedule periodic events in Rx?

From Dev

Django Schedule and queue Non periodic Tasks

From Dev

Travis-CI builds on schedule

From Dev

Travis-CI builds on schedule

From Dev

Jenkins Build Periodically - Schedule

From Dev

Jenkins Build Periodically - Schedule

From Dev

Split the string till specific substring

From Dev

excel sum till a specific number

From Dev

Jenkins builds loop list

From Dev

Configuring Qt builds with Jenkins

From Dev

Jenkins with Parallel Builds

From Dev

Tagging Jenkins builds with git

From Dev

Triggering builds remotely in Jenkins

From Dev

start jenkins builds parallely?

From Dev

Jenkins pull request plugin triggers builds from all branches in a repo and not a specific branch

From Dev

How to schedule a periodic task that is immune to system time change using Python

From Dev

How to schedule a periodic job that ends after given condition is true?

From Dev

PrimeFaces Schedule Date is wrong

From Dev

Query for schedule date comparison

From Dev

schedule in node js on date

From Dev

Gitlab CI fails to schedule builds for new commits

From Dev

Jenkins discard old builds: days with builds together

From Dev

Jenkins schedule JOBS based on week

From Dev

grep - regular expression - match till a specific word