Skip to content

Commit

Permalink
Run only 3 times a day
Browse files Browse the repository at this point in the history
Can launch more often when needed
  • Loading branch information
MarkEWaite committed Jan 27, 2023
1 parent cc5cadb commit 3d9ab43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
*/

properties([
buildDiscarder(logRotator(numToKeepStr: '5')),
pipelineTriggers([cron('@hourly')]),
// Only one build running at a time, stop prior build if new build starts
disableConcurrentBuilds(abortPrevious: true),
buildDiscarder(logRotator(numToKeepStr: '15')),
// Do not resume build after controller restart
disableResume(),
durabilityHint('PERFORMANCE_OPTIMIZED'),
// Only one build running at a time, stop prior build if new build starts
disableConcurrentBuilds(abortPrevious: true),
pipelineTriggers([cron('H H/8 * * *')]), // Run once every 8 hours (three times a day)
])

// Define processors
Expand Down

0 comments on commit 3d9ab43

Please sign in to comment.