Updated cron job definition (#939)

* Updated cron job definition

* Update .ci/Jenkinsfile

Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>
This commit is contained in:
Tomas Della Vedova
2019-08-13 10:54:44 +02:00
committed by delvedor
parent c790fae5f1
commit 1e3bdc68f8

6
.ci/Jenkinsfile vendored
View File

@ -30,9 +30,9 @@ pipeline {
triggers {
issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?tests(?:\\W+please)?.*')
// changeRequest() will return true in case of a commit or a pr
// we will have a daily cron job only ofr branches that don't have an active pr
cron(changeRequest() ? '' : '@daily')
// env.CHANGE_ID as a value in case of a commit or a pr, which means
// that we will have a daily cron job only for branches that don't have an active pr
cron(env.CHANGE_ID ? '' : '@daily')
}
stages {