diff options
author | Joan Touzet <wohali@users.noreply.github.com> | 2017-10-15 13:40:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-15 13:40:29 -0400 |
commit | 7f584da3d6f730d6093ca97a87123c582e809d6a (patch) | |
tree | ffb73327fe1f030a644798609e3fdbae9253bbd3 | |
parent | 7ae6928806edd1a145157ffc3444c4e0925f63d0 (diff) | |
download | couchdb-7f584da3d6f730d6093ca97a87123c582e809d6a.tar.gz |
Jenkins: Add Debian 9 (stretch), drop Ubuntu 12.04 (precise) (#891)
-rw-r--r-- | Jenkinsfile | 83 |
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 ''' |