From 1a15aa865eae3432c230773324673c263f408183 Mon Sep 17 00:00:00 2001 From: Stephen Donner Date: Tue, 26 Jun 2018 23:32:51 -0700 Subject: [PATCH 1/2] Only apply triggers for the master branch --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8a0b464..a780a60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,8 +13,8 @@ pipeline { lib('fxtest@1.9') } triggers { - pollSCM('H/5 * * * *') - cron('H H * * *') + pollSCM(env.BRANCH_NAME == 'master' ? 'H/30 * * * *' : '') + cron(env.BRANCH_NAME == 'master' ? 'H * * * *' : '') } options { ansiColor('xterm') From 48a442aae1dd00decddb82a9490095d6db440901 Mon Sep 17 00:00:00 2001 From: Stephen Donner Date: Wed, 27 Jun 2018 02:02:23 -0700 Subject: [PATCH 2/2] Restore original 5-minute poll --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a780a60..30ef8c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { lib('fxtest@1.9') } triggers { - pollSCM(env.BRANCH_NAME == 'master' ? 'H/30 * * * *' : '') + pollSCM(env.BRANCH_NAME == 'master' ? 'H/5 * * * *' : '') cron(env.BRANCH_NAME == 'master' ? 'H * * * *' : '') } options {