Skip to content

Commit 1d3c84a

Browse files
Only apply triggers for the master branch (#106)
* Only apply triggers for the master branch * Restore original 5-minute poll
1 parent b1effc6 commit 1d3c84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ pipeline {
1313
lib('fxtest@1.9')
1414
}
1515
triggers {
16-
pollSCM('H/5 * * * *')
17-
cron('H H * * *')
16+
pollSCM(env.BRANCH_NAME == 'master' ? 'H/5 * * * *' : '')
17+
cron(env.BRANCH_NAME == 'master' ? 'H * * * *' : '')
1818
}
1919
options {
2020
ansiColor('xterm')

0 commit comments

Comments
 (0)