Skip to content

Commit f923844

Browse files
committed
Trying to work around JENKINS-37984
1 parent a650ee4 commit f923844

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def describeAdhocAndScheduledTestingStage() {
175175

176176
// branch pattern for cron
177177
// should match 3.x, 4.x, 4.5.x, etc
178-
def branchPatternCron = ~"((\\d+(\\.[\\dx]+)+))"
178+
def branchPatternCron() = {
179+
~"((\\d+(\\.[\\dx]+)+))"
180+
}
179181

180182
pipeline {
181183
agent none
@@ -354,7 +356,7 @@ pipeline {
354356

355357
triggers {
356358
// schedules only run against release branches (i.e. 3.x, 4.x, 4.5.x, etc.)
357-
parameterizedCron(branchPatternCron.matcher(env.BRANCH_NAME).matches() ? """
359+
parameterizedCron(branchPatternCron().matcher(env.BRANCH_NAME).matches() ? """
358360
# Every weeknight (Monday - Friday) around 2:00 AM
359361
### JDK8 tests against 2.1, 3.0, DSE 4.8, DSE 5.0, DSE 5.1, DSE-6.0 and DSE 6.7
360362
H 2 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;CI_SCHEDULE_SERVER_VERSIONS=2.1 3.0 dse-4.8 dse-5.0 dse-5.1 dse-6.0 dse-6.7;CI_SCHEDULE_JABBA_VERSION=1.8

0 commit comments

Comments
 (0)