From 3d9ab431f18ccf672f378977b3f3243b9f02c529 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Thu, 26 Jan 2023 19:09:48 -0700 Subject: [PATCH] Run only 3 times a day Can launch more often when needed --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02d3661..a8cc147 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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