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/07/13 05:35:21 UTC

[couchdb] branch jenkins-build-packages updated: Skeleton for Publish stage

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

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


The following commit(s) were added to refs/heads/jenkins-build-packages by this push:
     new fa81d07  Skeleton for Publish stage
fa81d07 is described below

commit fa81d0753affd2db7ed4ddd2c73bcd1d98a13fea
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Thu Jul 13 01:35:06 2017 -0400

    Skeleton for Publish stage
---
 Jenkinsfile | 31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 8b2b59a..1f6fe82 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -397,22 +397,29 @@ pipeline {
 
     stage('Publish') {
       when {
-        branch '*(master|2.0.x|2.1.x)'
+        expression { return env.BRANCH_NAME ==~ /master|2.0.x|2.1.x|jenkins-*/ }
+      }
+      agent {
+        docker {
+          /* This image has the deb AND rpm repo tools installed in it */
+          image 'couchdbdev/debian-8-base'
+          /* We need the jenkins user mapped inside of the image */
+          args '-v /etc/passwd:/etc/passwd -v /etc/group:/etc/group'
+        }
       }
-      agent any
       steps {
-        /* Push it somewhere useful other than Jenkins, maybe? */
-        /* echo 'Publishing tarball...'
-        unstash 'tarball' */
-        echo 'Triggering Debian .deb builds...'
-        echo 'Triggering Ubuntu .deb builds...'
-        echo 'Triggering Ubuntu snap builds...'
-        echo 'Triggering CentOS .rpm builds...'
+        unstash 'tarball'
+        echo 'rsyncing tarballs from couchdb-vm2...'
+        echo 'Keeping only last 10 tarballs...'
+        echo 'rsyncing tarballs to couchdb-vm2...'
+        echo 'Building Debian repo...'
+        echo 'Building CentOS repo...'
+        echo 'rsyncing repos to couchdb-vm2...'
         echo 'Cleaning workspace...'
-        sh 'rm -rf * .[a-zA-Z]*'
+        deleteDir()
       }
-    }
-  }
+    } // stage
+  } // stages
 
   post {
     success {

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