From 2769a716d1b9f5ba230f6e1c051ca99ce5293ffc Mon Sep 17 00:00:00 2001 From: Stephen Donner Date: Wed, 27 Jun 2018 07:14:30 -0700 Subject: [PATCH] Only apply triggers for the master branch (#248) * Only apply triggers for the master branch * Restoring daily, rather than hourly, cron --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c517a83..6ff2eb2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,11 +10,11 @@ def capabilities = [ pipeline { agent any libraries { - lib('fxtest@1.9') + lib('fxtest@1.10') } triggers { - pollSCM('H/5 * * * *') - cron('H H * * *') + pollSCM(env.BRANCH_NAME == 'master' ? 'H/5 * * * *' : '') + cron(env.BRANCH_NAME == 'master' ? 'H H * * *' : '') } options { ansiColor('xterm')