You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/10/14 07:59:42 UTC

[couchdb] 01/01: Jenkins CI: Drop Ubuntu 12, add Debian 9

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch jenkins-debian-9
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit f66c5a1588ca47f5c5f30bfdabbe8f9e5e84312d
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Thu Oct 12 02:22:43 2017 -0400

    Jenkins CI: Drop Ubuntu 12, add Debian 9
---
 Jenkinsfile | 83 +++++++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 62 insertions(+), 21 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d521227..fed976a 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 '''

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.