summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2017-10-14 14:11:24 -0400
committerJoan Touzet <joant@atypical.net>2017-10-14 14:11:24 -0400
commitac16b703311d4f3953c47b93e0a692d6f7a67a89 (patch)
treeffb73327fe1f030a644798609e3fdbae9253bbd3
parent7ae6928806edd1a145157ffc3444c4e0925f63d0 (diff)
downloadcouchdb-jenkins-debian-9.tar.gz
Jenkins: Add Debian 9 (stretch), drop Ubuntu 12.04 (precise)jenkins-debian-9
-rw-r--r--Jenkinsfile83
1 files changed, 62 insertions, 21 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index d5212279e..fed976afc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -182,11 +182,11 @@ pipeline {
deleteDir()
} // node
},
- ubuntu1204erlang183: {
+ ubuntu1404erlangdefault: {
node(label: 'couchdbtest') {
timeout(time: 45, unit: "MINUTES") {
- sh 'docker pull couchdbdev/ubuntu-12.04-erlang-18.3'
- withDockerContainer(image: 'couchdbdev/ubuntu-12.04-erlang-18.3') {
+ sh 'docker pull couchdbdev/ubuntu-14.04-erlang-default'
+ withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-default') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -205,11 +205,51 @@ pipeline {
deleteDir()
} // node
},
- ubuntu1404erlangdefault: {
+ ubuntu1404erlang183: {
+ node(label: 'couchdbtest') {
+ timeout(time: 60, unit: "MINUTES") {
+ sh 'docker pull couchdbdev/ubuntu-14.04-erlang-18.3'
+ withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-18.3') {
+ sh 'rm -f apache-couchdb-*.tar.gz'
+ unstash 'tarball'
+ sh '''
+ cwd=$(pwd)
+ mkdir -p $COUCHDB_IO_LOG_DIR
+
+ # Build CouchDB from tarball
+ builddir=$(mktemp -d)
+ cd $builddir
+ tar -xf $cwd/apache-couchdb-*.tar.gz
+ cd apache-couchdb-*
+ ./configure --with-curl
+ make all
+ make check || (build-aux/logfile-uploader.py && false)
+
+ # Build CouchDB packages
+ cd $builddir
+ git clone https://github.com/apache/couchdb-pkg
+ mkdir couchdb
+ cp $cwd/apache-couchdb-*.tar.gz couchdb
+ tar -xf $cwd/apache-couchdb-*.tar.gz -C couchdb
+ cd couchdb-pkg
+ platform=$(lsb_release -cs)
+ make $platform PLATFORM=$platform
+
+ # Cleanup & save for posterity
+ rm -rf $cwd/pkgs/$platform && mkdir -p $cwd/pkgs/$platform
+ mv ../couchdb/*deb $cwd/pkgs/$platform || true
+ '''
+ } // withDocker
+ } // timeout
+ archiveArtifacts artifacts: 'pkgs/**', fingerprint: true
+ deleteDir()
+ } // node
+ },
+ ubuntu1604erlangdefault: {
node(label: 'couchdbtest') {
timeout(time: 45, unit: "MINUTES") {
- sh 'docker pull couchdbdev/ubuntu-14.04-erlang-default'
- withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-default') {
+ sh 'docker pull couchdbdev/ubuntu-16.04-erlang-default'
+ withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-default') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -228,11 +268,11 @@ pipeline {
deleteDir()
} // node
},
- ubuntu1404erlang183: {
+ ubuntu1604erlang183: {
node(label: 'couchdbtest') {
timeout(time: 60, unit: "MINUTES") {
- sh 'docker pull couchdbdev/ubuntu-14.04-erlang-18.3'
- withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-18.3') {
+ sh 'docker pull couchdbdev/ubuntu-16.04-erlang-18.3'
+ withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-18.3') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -268,11 +308,11 @@ pipeline {
deleteDir()
} // node
},
- ubuntu1604erlangdefault: {
+ debian8erlangdefault: {
node(label: 'couchdbtest') {
timeout(time: 45, unit: "MINUTES") {
- sh 'docker pull couchdbdev/ubuntu-16.04-erlang-default'
- withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-default') {
+ sh 'docker pull couchdbdev/debian-8-erlang-default'
+ withDockerContainer(image: 'couchdbdev/debian-8-erlang-default') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -291,11 +331,11 @@ pipeline {
deleteDir()
} // node
},
- ubuntu1604erlang183: {
+ debian8erlang183: {
node(label: 'couchdbtest') {
timeout(time: 60, unit: "MINUTES") {
- sh 'docker pull couchdbdev/ubuntu-16.04-erlang-18.3'
- withDockerContainer(image: 'couchdbdev/ubuntu-16.04-erlang-18.3') {
+ sh 'docker pull couchdbdev/debian-8-erlang-18.3'
+ withDockerContainer(image: 'couchdbdev/debian-8-erlang-18.3') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -331,11 +371,11 @@ pipeline {
deleteDir()
} // node
},
- debian8erlangdefault: {
+ debian9erlangdefault: {
node(label: 'couchdbtest') {
timeout(time: 45, unit: "MINUTES") {
- sh 'docker pull couchdbdev/debian-8-erlang-default'
- withDockerContainer(image: 'couchdbdev/debian-8-erlang-default') {
+ sh 'docker pull couchdbdev/debian-9-erlang-default'
+ withDockerContainer(image: 'couchdbdev/debian-9-erlang-default') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -354,11 +394,11 @@ pipeline {
deleteDir()
} // node
},
- debian8erlang183: {
+ debian9erlang183: {
node(label: 'couchdbtest') {
timeout(time: 60, unit: "MINUTES") {
- sh 'docker pull couchdbdev/debian-8-erlang-18.3'
- withDockerContainer(image: 'couchdbdev/debian-8-erlang-18.3') {
+ sh 'docker pull couchdbdev/debian-9-erlang-18.3'
+ withDockerContainer(image: 'couchdbdev/debian-9-erlang-18.3') {
sh 'rm -f apache-couchdb-*.tar.gz'
unstash 'tarball'
sh '''
@@ -429,6 +469,7 @@ pipeline {
reprepro -b couchdb-pkg/repo includedeb jessie pkgs/jessie/*deb
reprepro -b couchdb-pkg/repo includedeb trusty pkgs/trusty/*deb
reprepro -b couchdb-pkg/repo includedeb xenial pkgs/xenial/*deb
+ reprepro -b couchdb-pkg/repo includedeb stretch pkgs/stretch/*deb
'''
echo 'Building CentOS repos...'
sh '''