Skip to content

Commit 6bf0506

Browse files
committed
libcouchbase: add rhel 10
1 parent 95fd71d commit 6bf0506

4 files changed

Lines changed: 69 additions & 0 deletions

File tree

libcouchbase/Jenkinsfile.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ elsif ENV['LINUX_ONLY']
5252
# ['centos', 7, 'x86_64', 64, 'epel-7-x86_64'],
5353
['rhel', 8, 'x86_64', 64, 'rocky-8-x86_64'],
5454
['rhel', 9, 'x86_64', 64, 'rocky+epel-9-x86_64'],
55+
['rhel', 10, 'x86_64', 64, 'rocky+epel-10-x86_64'],
5556
# ['amzn', 2, 'aarch64', 64, 'amazonlinux-2-aarch64'],
5657
['amzn', 2, 'x86_64', 64, 'amazonlinux-2-x86_64'],
5758
['amzn', 2023, 'x86_64', 64, 'amazonlinux-2023-x86_64'],

libcouchbase/Jenkinsfile.repo.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ yum_distros = [
1212
# ['centos7', 'el7', 'x86_64'],
1313
['rhel8', 'el8', 'x86_64'],
1414
['rhel9', 'el9', 'x86_64'],
15+
['rhel10', 'el10', 'x86_64'],
1516
['amzn2', 'amzn2', 'x86_64'],
1617
# ['amzn2', 'amzn2', 'aarch64'],
1718
['amzn2023', 'amzn2023', 'x86_64'],

libcouchbase/lcb-lnx-scripted-build-pipeline.groovy

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,30 @@ pipeline {
468468
}
469469
}
470470
}
471+
stage('rhel10 x86_64') {
472+
agent { label 'mock' }
473+
stages {
474+
stage('r64v10') {
475+
steps {
476+
dir('ws_rhel10-64') {
477+
sh("sudo chown couchbase:couchbase -R .")
478+
deleteDir()
479+
unstash 'libcouchbase'
480+
}
481+
}
482+
}
483+
stage('srpm') {
484+
steps {
485+
package_srpm("rhel", 64, 10, "x86_64", "rocky+epel-10-x86_64", VERSION)
486+
}
487+
}
488+
stage('rpm') {
489+
steps {
490+
package_rpm("rhel", 64, 10, "x86_64", "rocky+epel-10-x86_64", VERSION)
491+
}
492+
}
493+
}
494+
}
471495
stage('amzn2 x86_64') {
472496
agent { label 'mock' }
473497
stages {

libcouchbase/lcb-repo-pipeline.groovy

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,49 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
9494
}
9595
}
9696

97+
stage('rhel10 x86_64') {
98+
agent { label 'centos7-signing' }
99+
steps {
100+
cleanWs()
101+
copyArtifacts(projectName: 'lcb-lnx-scripted-build-pipeline', selector: UPSTREAM_BUILD.isEmpty() ? upstream() : specific(UPSTREAM_BUILD), filter: 'libcouchbase-*_rhel10_*.tar')
102+
writeFile(file: "rpmsign-wrapper.expect", text: """
103+
set pkgName [lrange \$argv 0 0]
104+
spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${GPG_NAME}" \$pkgName
105+
expect -exact "Enter pass phrase: "
106+
send -- "\\r"
107+
expect eof
108+
wait
109+
""")
110+
sh("tar xf libcouchbase-*x86_64.tar")
111+
sh('mkdir -p repo/el10/x86_64')
112+
dir('repo') {
113+
sh("gpg --export --armor ${GPG_NAME} > couchbase.key")
114+
writeFile(file: 'libcouchbase-rhel10-x86_64.repo', text: """
115+
[couchbase]
116+
enabled = 1
117+
name = libcouchbase package for rhel10 x86_64
118+
baseurl = https://sdk-snapshots.couchbase.com/libcouchbase/el10/x86_64
119+
gpgcheck = 1
120+
gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
121+
""")
122+
}
123+
sh('cp -a libcouchbase-*x86_64/*rpm repo/el10/x86_64')
124+
sh('for p in repo/el10/x86_64/*.rpm; do expect rpmsign-wrapper.expect \$p; done')
125+
sh('createrepo --checksum sha repo/el10/x86_64')
126+
sh("gpg --batch --yes --local-user ${GPG_NAME} --detach-sign --armor repo/el10/x86_64/repodata/repomd.xml")
127+
sh("rm -rf repo/el10/x86_64@tmp")
128+
sh("tar cf repo-${BUILD_NUMBER}-rhel10-x86_64.tar repo")
129+
archiveArtifacts(artifacts: "repo-${BUILD_NUMBER}-rhel10-x86_64.tar", fingerprint: true)
130+
withAWS(credentials: 'aws-sdk', region: 'us-east-1') {
131+
s3Upload(
132+
bucket: 'sdk-snapshots.couchbase.com',
133+
file: 'repo/',
134+
path: 'libcouchbase/',
135+
)
136+
}
137+
}
138+
}
139+
97140
stage('amzn2 x86_64') {
98141
agent { label 'centos7-signing' }
99142
steps {

0 commit comments

Comments
 (0)