11
22// DO NOT EDIT: this file was generated from Jenkinsfile.repo.erb
33
4-
5-
64pipeline {
75 agent none
86 stages {
@@ -14,7 +12,7 @@ pipeline {
1412 agent { label ' centos7-signing' }
1513 steps {
1614 cleanWs()
17- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*centos7*.tar' )
15+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*centos7*.tar' )
1816 writeFile(file : " rpmsign-wrapper.expect" , text : """
1917set pkgName [lrange \$ argv 0 0]
2018spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${ GPG_NAME} " \$ pkgName
@@ -57,7 +55,7 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
5755 agent { label ' centos7-signing' }
5856 steps {
5957 cleanWs()
60- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*rhel8*.tar' )
58+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*rhel8*.tar' )
6159 writeFile(file : " rpmsign-wrapper.expect" , text : """
6260set pkgName [lrange \$ argv 0 0]
6361spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${ GPG_NAME} " \$ pkgName
@@ -100,7 +98,7 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
10098 agent { label ' centos7-signing' }
10199 steps {
102100 cleanWs()
103- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*rhel9*.tar' )
101+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*rhel9*.tar' )
104102 writeFile(file : " rpmsign-wrapper.expect" , text : """
105103set pkgName [lrange \$ argv 0 0]
106104spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${ GPG_NAME} " \$ pkgName
@@ -143,7 +141,7 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
143141 agent { label ' centos7-signing' }
144142 steps {
145143 cleanWs()
146- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*amzn2*.tar' )
144+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*amzn2*.tar' )
147145 writeFile(file : " rpmsign-wrapper.expect" , text : """
148146set pkgName [lrange \$ argv 0 0]
149147spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${ GPG_NAME} " \$ pkgName
@@ -186,7 +184,7 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
186184 agent { label ' centos7-signing' }
187185 steps {
188186 cleanWs()
189- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*amzn2*.tar' )
187+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*amzn2*.tar' )
190188 writeFile(file : " rpmsign-wrapper.expect" , text : """
191189set pkgName [lrange \$ argv 0 0]
192190spawn rpm --addsign -D "_signature gpg" -D "_gpg_name ${ GPG_NAME} " \$ pkgName
@@ -230,7 +228,7 @@ gpgkey = https://sdk-snapshots.couchbase.com/libcouchbase/couchbase.key
230228 agent { label ' debian10-signing' }
231229 steps {
232230 cleanWs()
233- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*jammy*.tar' )
231+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*jammy*.tar' )
234232 sh(' mkdir -p repo/ubuntu2204/conf' )
235233 writeFile(file : " repo/ubuntu2204/conf/distributions" , text : """
236234Origin: couchbase
@@ -267,7 +265,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu2204 jammy jammy/main
267265 agent { label ' debian10-signing' }
268266 steps {
269267 cleanWs()
270- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*bullseye*.tar' )
268+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*bullseye*.tar' )
271269 sh(' mkdir -p repo/debian11/conf' )
272270 writeFile(file : " repo/debian11/conf/distributions" , text : """
273271Origin: couchbase
@@ -304,7 +302,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/debian11 bullseye bullseye/
304302 agent { label ' debian10-signing' }
305303 steps {
306304 cleanWs()
307- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*focal*.tar' )
305+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*focal*.tar' )
308306 sh(' mkdir -p repo/ubuntu2004/conf' )
309307 writeFile(file : " repo/ubuntu2004/conf/distributions" , text : """
310308Origin: couchbase
@@ -341,7 +339,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu2004 focal focal/main
341339 agent { label ' debian10-signing' }
342340 steps {
343341 cleanWs()
344- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*buster*.tar' )
342+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*buster*.tar' )
345343 sh(' mkdir -p repo/debian10/conf' )
346344 writeFile(file : " repo/debian10/conf/distributions" , text : """
347345Origin: couchbase
@@ -378,7 +376,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/debian10 buster buster/main
378376 agent { label ' debian10-signing' }
379377 steps {
380378 cleanWs()
381- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*bionic*.tar' )
379+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*bionic*.tar' )
382380 sh(' mkdir -p repo/ubuntu1804/conf' )
383381 writeFile(file : " repo/ubuntu1804/conf/distributions" , text : """
384382Origin: couchbase
@@ -415,7 +413,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/ubuntu1804 bionic bionic/ma
415413 agent { label ' debian10-signing' }
416414 steps {
417415 cleanWs()
418- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*stretch*.tar' )
416+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*stretch*.tar' )
419417 sh(' mkdir -p repo/debian9/conf' )
420418 writeFile(file : " repo/debian9/conf/distributions" , text : """
421419Origin: couchbase
@@ -452,7 +450,7 @@ deb https://sdk-snapshots.couchbase.com/libcouchbase/debian9 stretch stretch/mai
452450 agent { label ' debian10-signing' }
453451 steps {
454452 cleanWs()
455- copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : upstream(), filter : ' libcouchbase-*xenial*.tar' )
453+ copyArtifacts(projectName : ' lcb-lnx-scripted-build-pipeline' , selector : UPSTREAM_BUILD . isEmpty() ? upstream() : specific( UPSTREAM_BUILD ), filter: ' libcouchbase-*xenial*.tar' )
456454 sh(' mkdir -p repo/ubuntu1604/conf' )
457455 writeFile(file : " repo/ubuntu1604/conf/distributions" , text : """
458456Origin: couchbase
0 commit comments