Skip to content

Commit

Permalink
Updated cron job definition (#939)
Browse files Browse the repository at this point in the history
* Updated cron job definition

* Update .ci/Jenkinsfile

Co-Authored-By: Victor Martinez <[email protected]>
  • Loading branch information
delvedor and v1v committed Aug 13, 2019
1 parent c790fae commit 1e3bdc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e3bdc6

Please sign in to comment.