xGIx
xGIx

Reputation: 539

A way to stop Jenkins from executing a build over period of time, example: '5-7pm'?

A way to stop Jenkins from executing a build over period of time, example: '5-7pm'

Example my session of Jenkins executes builds continuously, is there a way to stop a build from executing over a specific time period for example dont execute a build between 5-7pm?

Upvotes: 0

Views: 611

Answers (1)

Oren Chapo
Oren Chapo

Reputation: 529

If you build continuously, I guess you're using SCM polling (eg. poll the SCM every 2 minutes). If that's the case, just configure polling to exclude the desired time-frame. This is done using standard "cron" syntax (help and examples are available from the Jenkins UI).

Upvotes: 1

Related Questions