Skip to content

Commit 8d6d3d3

Browse files
authored
[CI] Run pipeline on daily basis if master branch (#49)
1 parent bb4647f commit 8d6d3d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ci/Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pipeline {
2121
}
2222
triggers {
2323
issueCommentTrigger('(?i).*jenkins\\W+run\\W+(?:the\\W+)?tests(?:\\W+please)?.*')
24+
// Only master branch will run on a timer basis
25+
cron(env.BRANCH_NAME == 'master' ? '@daily' : '')
2426
}
2527
stages {
2628
stage('Checkout') {
@@ -97,4 +99,4 @@ def python(Map v = [:], body) {
9799
body()
98100
}
99101
}
100-
}
102+
}

0 commit comments

Comments
 (0)