Skip to content

Commit 26eea73

Browse files
committed
JCBC-2201 SCBC-494 KCBC-193 Add Graviton 3 and 4 executors to test pipeline matrices
Modifications ------------- Copy & paste the Graviton 2 stage and run it on Graviton 3 & 4 agents. Change-Id: Ia05f13bac5656dc0c80dd32da21d081b65457dbd Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/233171 Tested-by: Build Bot <[email protected]> Reviewed-by: Michael Reiche <[email protected]>
1 parent f298d04 commit 26eea73

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

Jenkinsfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,54 @@ pipeline {
387387
}
388388
}
389389

390+
stage('Platform testing (Graviton3, mocks, openjdk 17)') {
391+
agent { label 'qe-grav3-amzn2' }
392+
when {
393+
beforeAgent true
394+
expression { notTriggeredByGerrit() }
395+
}
396+
steps {
397+
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
398+
cleanupWorkspace()
399+
dir('couchbase-jvm-clients') {
400+
doCheckout(REFSPEC)
401+
// Advice from builds team: cbdyncluster cannot be contacted from graviton agent, so testing
402+
// against mocks only for now
403+
script { testAgainstMock(defaultBuildJvm(), openjdk17()) }
404+
}
405+
}
406+
}
407+
post {
408+
always {
409+
junit allowEmptyResults: true, testResults: '**/surefire-reports/*.xml'
410+
}
411+
}
412+
}
413+
414+
stage('Platform testing (Graviton4, mocks, openjdk 17)') {
415+
agent { label 'qe-grav4-amzn2' }
416+
when {
417+
beforeAgent true
418+
expression { notTriggeredByGerrit() }
419+
}
420+
steps {
421+
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
422+
cleanupWorkspace()
423+
dir('couchbase-jvm-clients') {
424+
doCheckout(REFSPEC)
425+
// Advice from builds team: cbdyncluster cannot be contacted from graviton agent, so testing
426+
// against mocks only for now
427+
script { testAgainstMock(defaultBuildJvm(), openjdk17()) }
428+
}
429+
}
430+
}
431+
post {
432+
always {
433+
junit allowEmptyResults: true, testResults: '**/surefire-reports/*.xml'
434+
}
435+
}
436+
}
437+
390438
// Temporarily disabling until JVMCBC-1227 is resolved
391439
// stage('Platform testing (Alpine, mock, openjdk 11)') {
392440
// agent { label 'alpine' }

0 commit comments

Comments
 (0)