only build master periodically

This commit is contained in:
Joe Green
2017-11-08 13:40:20 +00:00
committed by GitHub
parent f3d037f7bc
commit 2c4d01ebde

View File

@@ -1,3 +1,5 @@
String cron_string = BRANCH_NAME == "master" ? "@daily" : ""
pipeline {
agent any
@@ -8,7 +10,7 @@ pipeline {
triggers {
pollSCM('* * * * *')
cron('@daily')
cron(cron_string)
}
stages {