File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def UNIT_RESULTS = "${TEST_RESULTS_FOLDER}/unit"
62
62
/**
63
63
* The location of the system test results
64
64
*/
65
- def SYSTEM_RESULTS = " ${ TEST_RESULTS_FOLDER} /system"
65
+ def SYSTEM_RESULTS = " ${ TEST_RESULTS_FOLDER} /system"
66
66
67
67
/**
68
68
* The name of the master branch
@@ -92,6 +92,10 @@ def ARTIFACTORY_CREDENTIALS_ID = "c8e3aa62-5eef-4e6b-8a3f-aa1006a7ef01"
92
92
// much impossible to have conditional options based on the branch :/
93
93
def opts = []
94
94
95
+ // Setup a schedule to run build periodically
96
+ // Run a build at 2.00AM everyday
97
+ def CRON_STRING = BRANCH_NAME == MASTER_BRANCH ? " H 2 * * *" : " "
98
+
95
99
if (RELEASE_BRANCHES . contains(BRANCH_NAME )) {
96
100
// Only keep 20 builds
97
101
opts. push(buildDiscarder(logRotator(numToKeepStr : ' 20' )))
@@ -115,6 +119,10 @@ pipeline {
115
119
skipDefaultCheckout true
116
120
}
117
121
122
+ triggers {
123
+ cron(CRON_STRING )
124
+ }
125
+
118
126
environment {
119
127
// Environment variable for flow control. Indicates if the git source was updated by the pipeline.
120
128
GIT_SOURCE_UPDATED = " false"
You can’t perform that action at this time.
0 commit comments