Only apply triggers for the master branch (#248)
* Only apply triggers for the master branch * Restoring daily, rather than hourly, cron
This commit is contained in:
Родитель
8f6396e0f7
Коммит
2769a716d1
|
@ -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')
|
||||
|
|
Загрузка…
Ссылка в новой задаче