diff --git a/scripts/catalog-build.sh b/scripts/catalog-build.sh index b5366e82..73386e11 100755 --- a/scripts/catalog-build.sh +++ b/scripts/catalog-build.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -Eeo pipefail + OPM_TOOL="opm" CONTAINER_TOOL="docker" diff --git a/scripts/e2e-kind.sh b/scripts/e2e-kind.sh index 52841334..8d2239f7 100755 --- a/scripts/e2e-kind.sh +++ b/scripts/e2e-kind.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -Eeo pipefail + readonly usage="Usage: e2e-minikube.sh --test-tag " readonly KUBE_CLUSTER_NAME="kind-e2e-cluster" diff --git a/scripts/e2e-minikube.sh b/scripts/e2e-minikube.sh index 13adb46d..4de4674d 100755 --- a/scripts/e2e-minikube.sh +++ b/scripts/e2e-minikube.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -Eeo pipefail + readonly usage="Usage: e2e-minikube.sh --test-tag " readonly LOCAL_REGISTRY="localhost:5000" diff --git a/scripts/e2e.sh b/scripts/e2e.sh index d87a115b..5df8024c 100755 --- a/scripts/e2e.sh +++ b/scripts/e2e.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -Eeo pipefail + readonly usage="Usage: e2e.sh -u -p --cluster-url --cluster-token --registry-name --registry-namespace --release --test-tag " readonly SERVICE_ACCOUNT="travis-tests" readonly OC_CLIENT_VERSION="4.6.0" diff --git a/scripts/pipeline/ci_to_secure_pipeline_scan.sh b/scripts/pipeline/ci_to_secure_pipeline_scan.sh index 72f3dea5..2490c822 100755 --- a/scripts/pipeline/ci_to_secure_pipeline_scan.sh +++ b/scripts/pipeline/ci_to_secure_pipeline_scan.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e -o pipefail + echo "Connecting to the Security Scan Toolchain" # IMAGES_TO_SCAN is delimited by "\n" diff --git a/scripts/pipeline/fyre-e2e.sh b/scripts/pipeline/fyre-e2e.sh index 97e67cde..f7cb7a6f 100755 --- a/scripts/pipeline/fyre-e2e.sh +++ b/scripts/pipeline/fyre-e2e.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e -o pipefail readonly usage="Usage: fyre-e2e.sh -u -p --cluster-url --cluster-token --registry-name --registry-image --registry-user --registry-password --release --test-tag --catalog-image --channel " readonly OC_CLIENT_VERSION="4.6.0" diff --git a/scripts/pipeline/release.sh b/scripts/pipeline/release.sh index 170bd07d..2bfca71a 100755 --- a/scripts/pipeline/release.sh +++ b/scripts/pipeline/release.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +set -e -o pipefail # # prepare data # diff --git a/scripts/pipeline/static-linter-scan.sh b/scripts/pipeline/static-linter-scan.sh index 39e20079..7872072d 100755 --- a/scripts/pipeline/static-linter-scan.sh +++ b/scripts/pipeline/static-linter-scan.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -o pipefail + readonly usage="Usage: static-linter-scan.sh --git-token --static-linter-version " readonly WORK_DIR="${PWD}/linter-tool" diff --git a/scripts/pipeline/twistlock-scan.sh b/scripts/pipeline/twistlock-scan.sh index 01662408..48c22eaa 100755 --- a/scripts/pipeline/twistlock-scan.sh +++ b/scripts/pipeline/twistlock-scan.sh @@ -1,5 +1,7 @@ #!/bin/bash -e +set -e -o pipefail + function install_twistlock() { DEBIAN_FRONTEND=noninteractive apt-get -y update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install uuid-runtime file jq && \ diff --git a/scripts/pipeline/va_scan b/scripts/pipeline/va_scan index 6ba50698..02e341e3 100644 --- a/scripts/pipeline/va_scan +++ b/scripts/pipeline/va_scan @@ -1,5 +1,6 @@ #!/usr/bin/env bash +set -e -o pipefail _toolchain_read() { jq -r "$1" "$TOOLCHAIN_CONFIG_JSON" | tr -d '\n'