11
2- // DO NOT EDIT: this file was generated from Jenkinsfile.signing .erb
2+ // DO NOT EDIT: this file was generated from Jenkinsfile.repo .erb
33
44
55
@@ -139,6 +139,43 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
139139 }
140140 }
141141
142+ stage(' debian11' ) {
143+
144+ agent { label ' debian10-signing' }
145+ steps {
146+ cleanWs()
147+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*bullseye*.tar' )
148+ sh(' mkdir -p repo/debian11/conf' )
149+ writeFile(file : " repo/debian11/conf/distributions" , text : """
150+ Origin: couchbase
151+ SignWith: ${ GPG_NAME}
152+ Suite: bullseye
153+ Codename: bullseye
154+ Version: debian11
155+ Components: bullseye/main
156+ Architectures: amd64
157+ Description: libcouchbase package repository for bullseye debian11
158+ """ )
159+ sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
160+ dir(' repo' ) {
161+ sh(" gpg --export --armor ${ GPG_NAME} > couchbase.key" )
162+ writeFile(file : ' libcouchbase-debian11.list' , text : """
163+ # curl https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key | sudo apt-key add -
164+ deb https://sdk-snapshots.couchbase.com/libcouchbase/debian11 bullseye bullseye/main
165+ """ )
166+ }
167+ sh(" for p in \$ (find . -name '*amd64.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/debian11 include bullseye \$ p; done" )
168+ sh(" tar cf repo-${ BUILD_NUMBER} -debian11.tar repo" )
169+ archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -debian11.tar" , fingerprint : true )
170+ withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
171+ s3Upload(
172+ bucket : ' sdk-snapshots.couchbase.com' ,
173+ file : ' repo/' ,
174+ path : ' libcouchbase/'
175+ )
176+ }
177+ }
178+ }
142179 stage(' ubuntu2004' ) {
143180
144181 agent { label ' debian10-signing' }
@@ -153,7 +190,7 @@ Suite: focal
153190Codename: focal
154191Version: ubuntu2004
155192Components: focal/main
156- Architectures: amd64 i386
193+ Architectures: amd64
157194Description: libcouchbase package repository for focal ubuntu2004
158195""" )
159196 sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
@@ -164,7 +201,7 @@ Description: libcouchbase package repository for focal ubuntu2004
164201deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu2004 focal focal/main
165202""" )
166203 }
167- sh(" for p in \$ (find . -name '*.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu2004 include focal \$ p; done" )
204+ sh(" for p in \$ (find . -name '*amd64 .changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu2004 include focal \$ p; done" )
168205 sh(" tar cf repo-${ BUILD_NUMBER} -ubuntu2004.tar repo" )
169206 archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -ubuntu2004.tar" , fingerprint : true )
170207 withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
@@ -190,7 +227,7 @@ Suite: buster
190227Codename: buster
191228Version: debian10
192229Components: buster/main
193- Architectures: amd64 i386
230+ Architectures: amd64
194231Description: libcouchbase package repository for buster debian10
195232""" )
196233 sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
@@ -201,7 +238,7 @@ Description: libcouchbase package repository for buster debian10
201238deb https://sdk-snapshots.couchbase.com/libcouchbase/debian10 buster buster/main
202239""" )
203240 }
204- sh(" for p in \$ (find . -name '*.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/debian10 include buster \$ p; done" )
241+ sh(" for p in \$ (find . -name '*amd64 .changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/debian10 include buster \$ p; done" )
205242 sh(" tar cf repo-${ BUILD_NUMBER} -debian10.tar repo" )
206243 archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -debian10.tar" , fingerprint : true )
207244 withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
@@ -227,7 +264,7 @@ Suite: bionic
227264Codename: bionic
228265Version: ubuntu1804
229266Components: bionic/main
230- Architectures: amd64 i386
267+ Architectures: amd64
231268Description: libcouchbase package repository for bionic ubuntu1804
232269""" )
233270 sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
@@ -238,7 +275,7 @@ Description: libcouchbase package repository for bionic ubuntu1804
238275deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu1804 bionic bionic/main
239276""" )
240277 }
241- sh(" for p in \$ (find . -name '*.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu1804 include bionic \$ p; done" )
278+ sh(" for p in \$ (find . -name '*amd64 .changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu1804 include bionic \$ p; done" )
242279 sh(" tar cf repo-${ BUILD_NUMBER} -ubuntu1804.tar repo" )
243280 archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -ubuntu1804.tar" , fingerprint : true )
244281 withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
@@ -264,7 +301,7 @@ Suite: stretch
264301Codename: stretch
265302Version: debian9
266303Components: stretch/main
267- Architectures: amd64 i386
304+ Architectures: amd64
268305Description: libcouchbase package repository for stretch debian9
269306""" )
270307 sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
@@ -275,7 +312,7 @@ Description: libcouchbase package repository for stretch debian9
275312deb https://sdk-snapshots.couchbase.com/libcouchbase/debian9 stretch stretch/main
276313""" )
277314 }
278- sh(" for p in \$ (find . -name '*.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/debian9 include stretch \$ p; done" )
315+ sh(" for p in \$ (find . -name '*amd64 .changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/debian9 include stretch \$ p; done" )
279316 sh(" tar cf repo-${ BUILD_NUMBER} -debian9.tar repo" )
280317 archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -debian9.tar" , fingerprint : true )
281318 withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
@@ -301,7 +338,7 @@ Suite: xenial
301338Codename: xenial
302339Version: ubuntu1604
303340Components: xenial/main
304- Architectures: amd64 i386
341+ Architectures: amd64
305342Description: libcouchbase package repository for xenial ubuntu1604
306343""" )
307344 sh(" for p in libcouchbase-*.tar; do tar xf \$ p; done" )
@@ -312,7 +349,7 @@ Description: libcouchbase package repository for xenial ubuntu1604
312349deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu1604 xenial xenial/main
313350""" )
314351 }
315- sh(" for p in \$ (find . -name '*.changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu1604 include xenial \$ p; done" )
352+ sh(" for p in \$ (find . -name '*amd64 .changes'); do reprepro -T deb --ignore=wrongdistribution -b repo/ubuntu1604 include xenial \$ p; done" )
316353 sh(" tar cf repo-${ BUILD_NUMBER} -ubuntu1604.tar repo" )
317354 archiveArtifacts(artifacts : " repo-${ BUILD_NUMBER} -ubuntu1604.tar" , fingerprint : true )
318355 withAWS(credentials : ' aws-sdk' , region : ' us-east-1' ) {
0 commit comments