@@ -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