We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fda102 commit e039035Copy full SHA for e039035
Jenkinsfile
@@ -1,5 +1,7 @@
1
#!/usr/bin/env groovy
2
3
+def branch = env.BRANCH_NAME ?: 'master'
4
+
5
/** Desired capabilities */
6
def capabilities = [
7
browserName: 'Firefox',
@@ -13,8 +15,8 @@ pipeline {
13
15
lib('fxtest@1.9')
14
16
}
17
triggers {
- pollSCM(env.BRANCH_NAME == 'master' ? 'H/5 * * * *' : '')
- cron(env.BRANCH_NAME == 'master' ? 'H * * * *' : '')
18
+ pollSCM(branch == 'master' ? 'H/5 * * * *' : '')
19
+ cron(branch == 'master' ? 'H * * * *' : '')
20
21
options {
22
ansiColor('xterm')
0 commit comments