You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2022/01/17 03:17:21 UTC

[couchdb] branch jenkins-dynamic-matrix updated: Bring back into env

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

kocolosk pushed a commit to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/jenkins-dynamic-matrix by this push:
     new a4e1ae8  Bring  back into env
a4e1ae8 is described below

commit a4e1ae868730b302a9aa4edc25191db5db8dc227
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Sun Jan 16 22:17:09 2022 -0500

    Bring  back into env
---
 build-aux/Jenkinsfile.full | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 5e96bfc..7a28ebb 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -165,19 +165,29 @@ def generateContainerStage(platform) {
         timeout(time: 90, unit: "MINUTES") {
           docker.withRegistry('https://docker.io/', 'dockerhub_creds') {
             docker.image(meta[platform].image).inside("${DOCKER_ARGS}") {
-              stage('Build from tarball & test') {
-                sh( script: 'rm -rf apache-couchdb-*', label: 'Clean workspace' )
-                unstash 'tarball'
-                sh( script: unpack, label: 'Unpack tarball' )
-                dir( "${platform}/build/couchdb" ) {
+              withEnv(['PLATFORM='+platform]) {
+                stage('Build from tarball & test') {
+                  sh( script: 'rm -rf apache-couchdb-*', label: 'Clean workspace' )
+                  unstash 'tarball'
+                  sh( script: unpack, label: 'Unpack tarball' )
+                  dir( "${platform}/build/couchdb" ) {
+                    sh 'pwd'
+                    sh 'ls -l'
+                    sh "./configure --skip-deps --spidermonkey-version ${meta[platform].spidermonkey_vsn}"
+                    sh 'make'
+                    sh 'make eunit'
+                    sh 'make elixir-suite'
+                    sh 'make exunit'
+                    sh 'make mango-test'
+                  }
+                }
+
+                stage('Build CouchDB packages') {
                   sh 'pwd'
                   sh 'ls -l'
-                  sh "./configure --skip-deps --spidermonkey-version ${meta[platform].spidermonkey_vsn}"
-                  sh 'make'
-                  sh 'make eunit'
-                  sh 'make elixir-suite'
-                  sh 'make exunit'
-                  sh 'make mango-test'
+                  unstash 'tarball'
+                  sh( script: make_packages, label: 'Build packages' )
+                  sh( script: cleanup_and_save, label: 'Stage package artifacts for archival' )
                 }
               }
             }