Skip to content

Commit 3c67020

Browse files
authored
Add cron trigger to Jenkinsfile
- Add H for hash to even the load - run only from midnight to 5 in the morning
1 parent 183f789 commit 3c67020

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ pipeline {
2424
agent {
2525
label "${hyperdriveSlaveLabel}"
2626
}
27-
27+
triggers {
28+
cron(env.BRANCH_NAME == 'develop' ? 'H H(0-5) * * 0' : '')
29+
}
2830
tools {
2931
jdk "${toolVersionJava}"
3032
maven "${toolVersionMaven}"

0 commit comments

Comments
 (0)