@@ -276,7 +276,7 @@ pipeline {
276276 axes {
277277 axis {
278278 name ' PLATFORM'
279- values " ubuntu20" , " debian9" , " centos7 " , " rockylinux9" , " m1" , " qe-grav2-amzn2" , " alpine" , " qe-ubuntu20-arm64" , " qe-ubuntu22-arm64" , " qe-rhel9-arm64"
279+ values " ubuntu20" , " debian9" , " rockylinux9" , " m1" , " qe-grav2-amzn2" , " alpine" , " qe-ubuntu20-arm64" , " qe-ubuntu22-arm64" , " qe-rhel9-arm64"
280280 }
281281 }
282282
@@ -420,12 +420,13 @@ pipeline {
420420 }
421421 }
422422 parallel {
423- stage(' centos7 x86_64' ) {
423+ stage(' rhel8 x86_64' ) {
424424 agent { label ' mock' }
425425 stages {
426- stage(' c64v7 ' ) {
426+ stage(' r64v8 ' ) {
427427 steps {
428- dir(' ws_centos7-64' ) {
428+ dir(' ws_rhel8-64' ) {
429+ sh(" sudo dnf install -y qemu" )
429430 sh(" sudo chown couchbase:couchbase -R ." )
430431 deleteDir()
431432 unstash ' libcouchbase'
@@ -434,22 +435,23 @@ pipeline {
434435 }
435436 stage(' srpm' ) {
436437 steps {
437- package_srpm(" centos " , 64 , 7 , " x86_64" , " epel-7 -x86_64" , VERSION )
438+ package_srpm(" rhel " , 64 , 8 , " x86_64" , " rocky-8 -x86_64" , VERSION )
438439 }
439440 }
440441 stage(' rpm' ) {
441442 steps {
442- package_rpm(" centos " , 64 , 7 , " x86_64" , " epel-7 -x86_64" , VERSION )
443+ package_rpm(" rhel " , 64 , 8 , " x86_64" , " rocky-8 -x86_64" , VERSION )
443444 }
444445 }
445446 }
446447 }
447- stage(' rhel8 x86_64' ) {
448+ stage(' rhel9 x86_64' ) {
448449 agent { label ' mock' }
449450 stages {
450- stage(' r64v8 ' ) {
451+ stage(' r64v9 ' ) {
451452 steps {
452- dir(' ws_rhel8-64' ) {
453+ dir(' ws_rhel9-64' ) {
454+ sh(" sudo dnf install -y qemu" )
453455 sh(" sudo chown couchbase:couchbase -R ." )
454456 deleteDir()
455457 unstash ' libcouchbase'
@@ -458,22 +460,23 @@ pipeline {
458460 }
459461 stage(' srpm' ) {
460462 steps {
461- package_srpm(" rhel" , 64 , 8 , " x86_64" , " rocky-8 -x86_64" , VERSION )
463+ package_srpm(" rhel" , 64 , 9 , " x86_64" , " rocky+epel-9 -x86_64" , VERSION )
462464 }
463465 }
464466 stage(' rpm' ) {
465467 steps {
466- package_rpm(" rhel" , 64 , 8 , " x86_64" , " rocky-8 -x86_64" , VERSION )
468+ package_rpm(" rhel" , 64 , 9 , " x86_64" , " rocky+epel-9 -x86_64" , VERSION )
467469 }
468470 }
469471 }
470472 }
471- stage(' rhel9 x86_64 ' ) {
473+ stage(' amzn2 aarch64 ' ) {
472474 agent { label ' mock' }
473475 stages {
474- stage(' r64v9 ' ) {
476+ stage(' a64v2 ' ) {
475477 steps {
476- dir(' ws_rhel9-64' ) {
478+ dir(' ws_amzn2-64' ) {
479+ sh(" sudo dnf install -y qemu" )
477480 sh(" sudo chown couchbase:couchbase -R ." )
478481 deleteDir()
479482 unstash ' libcouchbase'
@@ -482,12 +485,12 @@ pipeline {
482485 }
483486 stage(' srpm' ) {
484487 steps {
485- package_srpm(" rhel " , 64 , 9 , " x86_64 " , " rocky+epel-9-x86_64 " , VERSION )
488+ package_srpm(" amzn " , 64 , 2 , " aarch64 " , " amazonlinux-2-aarch64 " , VERSION )
486489 }
487490 }
488491 stage(' rpm' ) {
489492 steps {
490- package_rpm(" rhel " , 64 , 9 , " x86_64 " , " rocky+epel-9-x86_64 " , VERSION )
493+ package_rpm(" amzn " , 64 , 2 , " aarch64 " , " amazonlinux-2-aarch64 " , VERSION )
491494 }
492495 }
493496 }
@@ -498,6 +501,7 @@ pipeline {
498501 stage(' a64v2' ) {
499502 steps {
500503 dir(' ws_amzn2-64' ) {
504+ sh(" sudo dnf install -y qemu" )
501505 sh(" sudo chown couchbase:couchbase -R ." )
502506 deleteDir()
503507 unstash ' libcouchbase'
@@ -522,6 +526,7 @@ pipeline {
522526 stage(' a64v2023' ) {
523527 steps {
524528 dir(' ws_amzn2023-64' ) {
529+ sh(" sudo dnf install -y qemu" )
525530 sh(" sudo chown couchbase:couchbase -R ." )
526531 deleteDir()
527532 unstash ' libcouchbase'
@@ -746,37 +751,6 @@ pipeline {
746751 }
747752 }
748753 }
749- stage(' amzn2' ) {
750- when {
751- expression {
752- return ! IS_GERRIT_TRIGGER . toBoolean()
753- }
754- }
755- matrix {
756- axes {
757- axis {
758- name ' PLATFORM'
759- values ' aarch64'
760- }
761- }
762- agent { label PLATFORM == ' x86_64' ? ' amzn2' : ' qe-grav2-amzn2' }
763- stages {
764- stage(' rpm' ) {
765- steps {
766- sh(' sudo yum erase -y openssl-devel; sudo yum install -y openssl11-devel rpm-build yum-utils; cat /etc/os-release' )
767- unstash(' centos7-srpm' )
768- sh(' sudo yum-builddep -y libcouchbase-*/*.src.rpm' )
769- sh(' sudo rm -rf output; rpmbuild --rebuild libcouchbase-*/*.src.rpm -D "_rpmdir output"' )
770- dir(' output' ) {
771- sh(" mv ${ PLATFORM} libcouchbase-${ VERSION.tar()} _amzn2_${ PLATFORM} " )
772- sh(" tar cf libcouchbase-${ VERSION.tar()} _amzn2_${ PLATFORM} .tar libcouchbase-${ VERSION.tar()} _amzn2_${ PLATFORM} " )
773- archiveArtifacts(artifacts : " libcouchbase-${ VERSION.tar()} _amzn2_${ PLATFORM} .tar" , fingerprint : true )
774- }
775- }
776- }
777- }
778- }
779- }
780754 stage(' repositories' ) {
781755 when {
782756 expression {
0 commit comments