couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woh...@apache.org
Subject [couchdb] branch master updated: Jenkins: Add Debian 9 (stretch), drop Ubuntu 12.04 (precise) (#891)
Date Sun, 15 Oct 2017 17:40:32 GMT
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f584da  Jenkins: Add Debian 9 (stretch), drop Ubuntu 12.04 (precise) (#891)
7f584da is described below

commit 7f584da3d6f730d6093ca97a87123c582e809d6a
Author: Joan Touzet <wohali@users.noreply.github.com>
AuthorDate: Sun Oct 15 13:40:29 2017 -0400

    Jenkins: Add Debian 9 (stretch), drop Ubuntu 12.04 (precise) (#891)
---
 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" <commits@couchdb.apache.org>'].

Mime
View raw message