This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/3.x by this push:
new 6594045 Fix publication of nightly packages (#3925)
6594045 is described below
commit 6594045637ba3b7388c419ae31e5bd2491278b99
Author: Adam Kocoloski <[email protected]>
AuthorDate: Sat Feb 5 14:45:30 2022 -0500
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
---
build-aux/Jenkinsfile.full | 40 +++++++++++++++++-----------------------
1 file changed, 17 insertions(+), 23 deletions(-)
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index a443d1d..0132eb5 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"
[email protected]:/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"
[email protected]:/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 [email protected]:/var/www/html
rm -rf $BRANCH_NAME couchdb-pkg *.tar.gz
- '''
+ ''' )
} // withCredentials
} // steps
} // stage