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:
committed by
delvedor
parent
c790fae5f1
commit
1e3bdc68f8
6
.ci/Jenkinsfile
vendored
6
.ci/Jenkinsfile
vendored
@ -30,9 +30,9 @@ pipeline {
|
|||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?tests(?:\\W+please)?.*')
|
issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?tests(?:\\W+please)?.*')
|
||||||
// changeRequest() will return true in case of a commit or a pr
|
// env.CHANGE_ID as a value in case of a commit or a pr, which means
|
||||||
// we will have a daily cron job only ofr branches that don't have an active pr
|
// that we will have a daily cron job only for branches that don't have an active pr
|
||||||
cron(changeRequest() ? '' : '@daily')
|
cron(env.CHANGE_ID ? '' : '@daily')
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|||||||
Reference in New Issue
Block a user