mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
only build master periodically
This commit is contained in:
parent
f3d037f7bc
commit
2c4d01ebde
1 changed files with 3 additions and 1 deletions
4
services/web/Jenkinsfile
vendored
4
services/web/Jenkinsfile
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
String cron_string = BRANCH_NAME == "master" ? "@daily" : ""
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
agent any
|
agent any
|
||||||
|
@ -8,7 +10,7 @@ pipeline {
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
pollSCM('* * * * *')
|
pollSCM('* * * * *')
|
||||||
cron('@daily')
|
cron(cron_string)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
Loading…
Reference in a new issue