From 72a2624879daa8447718373722c5cedd41d86585 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Fri, 9 Feb 2024 13:19:07 +0100 Subject: [PATCH] .ci/nightly-build-config.yaml: run remove_modules.sh with failfast --- .ci/nightly-build-config.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.ci/nightly-build-config.yaml b/.ci/nightly-build-config.yaml index 05b96ad99..66267d766 100644 --- a/.ci/nightly-build-config.yaml +++ b/.ci/nightly-build-config.yaml @@ -24,29 +24,25 @@ build: build-command: upstream: | ${{ env.PME_CMD }} ${{ env.PME_ALIGNMENT_PARAMS_kiegroup_drools }} - bash -c "set -o pipefail ; ${{ env.REMOVE_MODULES }} | tee ${{ env.WORKSPACE }}/drools.removed-modules.log" - bash -c "set -o pipefail ; ${{ env.PME_BUILD_SCRIPT_kiegroup_drools }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/drools.maven.log" - + bash -c "set -e ; set -o pipefail ; ${{ env.REMOVE_MODULES }} ; ${{ env.PME_BUILD_SCRIPT_kiegroup_drools }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/drools.maven.log" + - project: kiegroup/kogito-runtimes build-command: current: | ${{ env.PME_CMD }} ${{ env.PME_ALIGNMENT_PARAMS_kiegroup_kogito_runtimes }} - bash -c "set -o pipefail ; ${{ env.REMOVE_MODULES }} | tee ${{ env.WORKSPACE }}/kogito_runtimes.removed-modules.log" - bash -c "set -o pipefail ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_runtimes }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_runtimes.maven.log" + bash -c "set -e ; set -o pipefail ; ${{ env.REMOVE_MODULES }} ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_runtimes }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_runtimes.maven.log" - project: kiegroup/kogito-apps - build-command: + build-command: downstream: | ${{ env.PME_CMD }} ${{ env.PME_ALIGNMENT_PARAMS_kiegroup_kogito_apps }} - bash -c "set -o pipefail ; ${{ env.REMOVE_MODULES }} | tee ${{ env.WORKSPACE }}/kogito_apps.removed-modules.log" - bash -c "set -o pipefail ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_apps }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_apps.maven.log" + bash -c "set -e ; set -o pipefail ; ${{ env.REMOVE_MODULES }} ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_apps }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_apps.maven.log" - project: kiegroup/kogito-examples build-command: downstream: | ${{ env.PME_CMD }} ${{ env.PME_ALIGNMENT_PARAMS_kiegroup_kogito_examples }} - bash -c "set -o pipefail ; ${{ env.REMOVE_MODULES }} | tee ${{ env.WORKSPACE }}/kogito_examples.removed-modules.log" - bash -c "set -o pipefail ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_examples }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_examples.maven.log" + bash -c "set -e ; set -o pipefail ; ${{ env.REMOVE_MODULES }} ; ${{ env.PME_BUILD_SCRIPT_kiegroup_kogito_examples }} ${{ env.BUILD_MVN_OPTS }} | tee ${{ env.WORKSPACE }}/kogito_examples.maven.log" - project: kiegroup/kogito-images build-command: