diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2022-02-05 14:45:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 14:45:30 -0500 |
commit | 6594045637ba3b7388c419ae31e5bd2491278b99 (patch) | |
tree | 9afea298601fcb86844d6d0c1c34ebfd26b77d8c | |
parent | 073a2db2b2b1c4e8e1c2445c3e24341b26b1a753 (diff) | |
download | couchdb-6594045637ba3b7388c419ae31e5bd2491278b99.tar.gz |
Fix publication of nightly packages (#3925)
* Remove leftover CentOS 6 RPM bits
* Stop publishing SM 1.8.5 package for Debian 10
We're using the native SM 60 package in the CI system. If you look
closely you'll see that we weren't actually successfully publishing that
package anyway, so removing this line is a no-op.
* Publish Debian 11 packages
* Publish packages on main, not master
* Apply labels directly to build steps
-rw-r--r-- | build-aux/Jenkinsfile.full | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full index a443d1dde..0132eb5e4 100644 --- a/build-aux/Jenkinsfile.full +++ b/build-aux/Jenkinsfile.full @@ -381,7 +381,7 @@ pipeline { stage('Publish') { when { - expression { return env.BRANCH_NAME ==~ /master|2.*.x|3.*.x|4.*.x|jenkins-.*/ } + expression { return env.BRANCH_NAME ==~ /main|2.*.x|3.*.x|4.*.x|jenkins-.*/ } } agent { @@ -404,36 +404,31 @@ pipeline { unstash 'tarball' unarchive mapping: ['pkgs/' : '.'] - echo 'Retrieving & cleaning current repo-nightly tree...' - sh ''' + sh( label: 'Retrieve & clean current repo-nightly tree', script: ''' rsync -avz -e "ssh -o StrictHostKeyChecking=no -i $KEY" jenkins@repo-nightly.couchdb.org:/var/www/html/$BRANCH_NAME . || mkdir -p $BRANCH_NAME - rm -rf $BRANCH_NAME/debian/* $BRANCH_NAME/el6/* $BRANCH_NAME/el7/* $BRANCH_NAME/el8/* - mkdir -p $BRANCH_NAME/debian $BRANCH_NAME/el6 $BRANCH_NAME/el7 $BRANCH_NAME/el8 $BRANCH_NAME/source + rm -rf $BRANCH_NAME/debian/* $BRANCH_NAME/el6 $BRANCH_NAME/el7/* $BRANCH_NAME/el8/* + mkdir -p $BRANCH_NAME/debian $BRANCH_NAME/el7 $BRANCH_NAME/el8 $BRANCH_NAME/source rsync -avz -e "ssh -o StrictHostKeyChecking=no -i $KEY" jenkins@repo-nightly.couchdb.org:/var/www/html/js . - ''' + ''' ) - echo 'Building Debian repo...' - sh ''' + sh( label: 'Build Debian repo', script: ''' git clone https://github.com/apache/couchdb-pkg cp js/debian-stretch/*.deb pkgs/stretch - reprepro -b couchdb-pkg/repo includedeb stretch pkgs/stretch/*.deb - cp js/debian-buster/*.deb pkgs/stretch - reprepro -b couchdb-pkg/repo includedeb buster pkgs/buster/*.deb cp js/ubuntu-bionic/*.deb pkgs/bionic - reprepro -b couchdb-pkg/repo includedeb bionic pkgs/bionic/*.deb - reprepro -b couchdb-pkg/repo includedeb focal pkgs/focal/*.deb - ''' + for plat in stretch buster bullseye bionic focal + do + reprepro -b couchdb-pkg/repo includedeb $plat pkgs/$plat/*.deb + done + ''' ) - echo 'Building CentOS repos...' - sh ''' + sh( label: 'Build CentOS repos', script: ''' cp js/centos-7/*rpm pkgs/centos7 cp js/centos-8/*rpm pkgs/centos8 cd pkgs/centos7 && createrepo_c --database . cd ../centos8 && createrepo_c --database . - ''' + ''' ) - echo 'Building tree to upload...' - sh ''' + sh( label: 'Build tree to upload', script: ''' mv couchdb-pkg/repo/pool $BRANCH_NAME/debian mv couchdb-pkg/repo/dists $BRANCH_NAME/debian mv pkgs/centos7/* $BRANCH_NAME/el7 @@ -442,13 +437,12 @@ pipeline { cd $BRANCH_NAME/source ls -1tr | head -n -10 | xargs -d '\n' rm -f -- cd ../.. - ''' + ''' ) - echo 'rsyncing tree to repo-nightly...' - sh ''' + sh( label: 'Sync tree back to repo-nightly', script: ''' rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no -i $KEY" $BRANCH_NAME jenkins@repo-nightly.couchdb.org:/var/www/html rm -rf $BRANCH_NAME couchdb-pkg *.tar.gz - ''' + ''' ) } // withCredentials } // steps } // stage |