Skip to content

Commit 1e3bdc6

Browse files
delvedorv1v
andcommitted
Updated cron job definition (#939)
* Updated cron job definition * Update .ci/Jenkinsfile Co-Authored-By: Victor Martinez <victormartinezrubio@gmail.com>
1 parent c790fae commit 1e3bdc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ pipeline {
3030

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

3838
stages {

0 commit comments

Comments
 (0)