Skip to content

Commit 863e690

Browse files
authored
Jenkinsfile cleanup (#1163)
1 parent a1e2d3d commit 863e690

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

Jenkinsfile

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Test Profiles:
1313
Matrix Types:
1414
1515
Full: All server versions, python runtimes tested with and without Cython.
16-
Develop: Smaller matrix for dev purpose.
1716
Cassandra: All cassandra server versions.
1817
Dse: All dse server versions.
18+
Smoke: CI-friendly configurations. Currently-supported Python version + modern Cassandra/DSE instances.
19+
We also avoid cython since it's tested as part of the nightlies
1920
2021
Parameters:
2122
@@ -29,25 +30,16 @@ import com.datastax.jenkins.drivers.python.Slack
2930

3031
slack = new Slack()
3132

32-
// Define our predefined matrices
33-
//
34-
// Smoke tests are CI-friendly test configuration. Currently-supported Python version + modern C*/DSE instances.
35-
// We also avoid cython since it's tested as part of the nightlies.
3633
DEFAULT_CASSANDRA = ['2.1', '2.2', '3.0', '3.11', '4.0']
3734
DEFAULT_DSE = ['dse-5.0.15', 'dse-5.1.35', 'dse-6.0.18', 'dse-6.7.17', 'dse-6.8.30']
38-
DEFAULT_RUNTIME = ['2.7.18', '3.5.9', '3.6.10', '3.7.7', '3.8.3']
35+
DEFAULT_RUNTIME = ['3.7.7', '3.8.3']
3936
DEFAULT_CYTHON = ["True", "False"]
4037
matrices = [
4138
"FULL": [
4239
"SERVER": DEFAULT_CASSANDRA + DEFAULT_DSE,
4340
"RUNTIME": DEFAULT_RUNTIME,
4441
"CYTHON": DEFAULT_CYTHON
4542
],
46-
"DEVELOP": [
47-
"SERVER": ['2.1', '3.11', 'dse-6.8.30'],
48-
"RUNTIME": ['2.7.18', '3.6.10'],
49-
"CYTHON": DEFAULT_CYTHON
50-
],
5143
"CASSANDRA": [
5244
"SERVER": DEFAULT_CASSANDRA,
5345
"RUNTIME": DEFAULT_RUNTIME,
@@ -394,8 +386,9 @@ def describeBuild(buildContext) {
394386
}
395387
}
396388

397-
def scheduleTriggerJobName() {
398-
"drivers/python/oss/master/disabled"
389+
// branch pattern for cron
390+
def branchPatternCron() {
391+
~"(master)"
399392
}
400393

401394
pipeline {
@@ -460,7 +453,7 @@ pipeline {
460453
</table>''')
461454
choice(
462455
name: 'MATRIX',
463-
choices: ['DEFAULT', 'SMOKE', 'FULL', 'DEVELOP', 'CASSANDRA', 'DSE'],
456+
choices: ['DEFAULT', 'SMOKE', 'FULL', 'CASSANDRA', 'DSE'],
464457
description: '''<p>The matrix for the build.</p>
465458
<table style="width:100%">
466459
<col width="25%">
@@ -481,10 +474,6 @@ pipeline {
481474
<td><strong>FULL</strong></td>
482475
<td>All server versions, python runtimes tested with and without Cython.</td>
483476
</tr>
484-
<tr>
485-
<td><strong>DEVELOP</strong></td>
486-
<td>Smaller matrix for dev purpose.</td>
487-
</tr>
488477
<tr>
489478
<td><strong>CASSANDRA</strong></td>
490479
<td>All cassandra server versions.</td>
@@ -629,10 +618,10 @@ pipeline {
629618
}
630619

631620
triggers {
632-
parameterizedCron((scheduleTriggerJobName() == env.JOB_NAME) ? """
621+
parameterizedCron(branchPatternCron().matcher(env.BRANCH_NAME).matches() ? """
633622
# Every weeknight (Monday - Friday) around 4:00 AM
634-
# These schedules will run with and without Cython enabled for Python v2.7.18 and v3.5.9
635-
H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=2.7.18 3.5.9;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
623+
# These schedules will run with and without Cython enabled for Python 3.7.7 and 3.8.3
624+
H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=3.7.7 3.8.3;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
636625
""" : "")
637626
}
638627

0 commit comments

Comments
 (0)