From ddd2304022e313eca9b391a043b12ecb9afe3bf7 Mon Sep 17 00:00:00 2001 From: Stefan Weiberg Date: Thu, 17 Feb 2022 10:29:13 +0000 Subject: [PATCH] use set -e to catch more issues with the script --- gocd/sp4.target.gocd.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gocd/sp4.target.gocd.yaml b/gocd/sp4.target.gocd.yaml index 7b2a784a..c226303c 100644 --- a/gocd/sp4.target.gocd.yaml +++ b/gocd/sp4.target.gocd.yaml @@ -81,6 +81,7 @@ pipelines: - staging-bot tasks: - script: |- + set -e PRODUCTS=$(osc -A https://api.suse.de ls SUSE:SLE-15-SP4:GA | grep "^SLES15-SP4" | grep -v release) for product in kiwi-templates-Minimal sles15-image 000product $PRODUCTS; do osc -A https://api.suse.de release SUSE:SLE-15-SP4:GA $product @@ -150,6 +151,7 @@ pipelines: - staging-bot tasks: - script: |- + set -e PRODUCTS=$(osc -A https://api.suse.de ls SUSE:SLE-15-SP4:GA | grep "^SLES15-SP4" | grep -v release) for product in kiwi-templates-Minimal sles15-image 000product $PRODUCTS; do osc -A https://api.suse.de release SUSE:SLE-15-SP4:GA $product