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/18 18:20:09 UTC

[couchdb] 01/01: Try error signal to fail build

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

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

commit 85485fcb5e06d4f1ff1c0d191e648b88354be605
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Tue Jan 18 13:19:44 2022 -0500

    Try error signal to fail build
---
 build-aux/Jenkinsfile.full | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index 124c8b1..47daf97 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -126,6 +126,7 @@ def generateNativeStage(platform) {
               dir( "${platform}/build" ) {
                 sh "./configure --skip-deps --spidermonkey-version ${meta[platform].spidermonkey_vsn}"
                 sh '$MAKE'
+                sh "${platform} == \"macos\" && false"
                 sh '$MAKE eunit'
                 sh '$MAKE elixir-suite'
                 sh '$MAKE exunit'
@@ -137,6 +138,7 @@ def generateNativeStage(platform) {
             echo "Build failed: {$err}"
             currentBuild.result = 'FAILURE'
             sh 'ls -l ${WORKSPACE}'
+            error("{$err}")
             withEnv([
                 'HOME='+pwd(),
                 'PATH+USRLOCAL=/usr/local/bin',
@@ -179,6 +181,7 @@ def generateContainerStage(platform) {
                   dir( "${platform}/build" ) {
                     sh "./configure --skip-deps --spidermonkey-version ${meta[platform].spidermonkey_vsn}"
                     sh 'make'
+                    sh "${platform} == \"focal\" && false"
                     sh 'make eunit'
                     sh 'make elixir-suite'
                     sh 'make exunit'
@@ -193,6 +196,7 @@ def generateContainerStage(platform) {
                     sh 'ls -l'
                     sh 'make build-report'
                   }
+                  error("{$err}")
                 }
                 finally {
                   junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml, **/src/mango/nosetests.xml, **/test/javascript/junit.xml'
@@ -206,6 +210,7 @@ def generateContainerStage(platform) {
                   sh( script: "mkdir -p ${platform}/couchdb", label: 'Create build directory' )
                   sh( script: "tar -xf apache-couchdb-*.tar.gz -C ${platform}/couchdb", label: 'Unpack release' )
                   sh( script: "cd ${platform} && git clone https://github.com/apache/couchdb-pkg", label: 'Clone packaging helper repo' )
+                  sh "${platform} == \"centos7\" && false"
                   dir( "${platform}/couchdb-pkg" ) {
                     sh( script: 'make', label: 'Build packages' )
                   }
@@ -221,6 +226,7 @@ def generateContainerStage(platform) {
                   echo "Packaging failed: {$err}"
                   currentBuild.result = 'FAILURE'
                   sh 'ls -l ${WORKSPACE}'
+                  error("{$err}")
                 }
                 finally {
                   sh 'rm -rf ${WORKSPACE}/*'