diff --git a/ci-operator/templates/openshift/endurance/endurance-install.yaml b/ci-operator/templates/openshift/endurance/endurance-install.yaml index e2a02882569b..629207e218d4 100644 --- a/ci-operator/templates/openshift/endurance/endurance-install.yaml +++ b/ci-operator/templates/openshift/endurance/endurance-install.yaml @@ -80,8 +80,7 @@ objects: - /bin/bash - -c - | - #!/bin/bash - set -euo pipefail + #!/bin/bash -x # fetch the oc binary so we can talk to the cluster. export PATH=$PATH:/tmp/shared/bin @@ -154,8 +153,7 @@ objects: - /bin/bash - -c - | - #!/bin/bash - set -euo pipefail + #!/bin/bash -x export PATH=$PATH:/tmp/shared/bin @@ -379,8 +377,7 @@ objects: - /bin/sh - -c - | - #!/bin/bash - set -euo pipefail + #!/bin/sh -x export PATH=$PATH:/tmp/shared/bin diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-custom-test-image.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-custom-test-image.yaml index 4542460a257b..ec9891877733 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-custom-test-image.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-custom-test-image.yaml @@ -380,8 +380,8 @@ objects: - /bin/bash - -c - | - #!/bin/bash - set -euo pipefail + #!/bin/sh + set -e trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM @@ -660,8 +660,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index 5723572d9c8c..10d85285eb44 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -385,7 +385,7 @@ objects: - /bin/bash - -c - | - #!/bin/bash + #!/bin/sh set -euo pipefail trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT @@ -731,8 +731,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml index 9f268a0ab9d7..2d076bf01360 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml @@ -185,9 +185,8 @@ objects: - /bin/sh - -c - | - #!/bin/bash + #!/bin/sh set -euo pipefail - trap 'rc=$?; if test "${rc}" -eq 0; then touch "${HOME}"/setup-success; else touch "${HOME}"/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM cat > "${HOME}"/run-tests.sh << 'EOF' diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-metal-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-metal-e2e.yaml index 4560c310ba05..a01190684784 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-metal-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-metal-e2e.yaml @@ -226,10 +226,8 @@ objects: - /bin/sh - -c - | - #!/bin/bash - set -euo pipefail - set -x - + #!/bin/sh + set -ex trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM @@ -517,8 +515,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-openstack-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-openstack-e2e.yaml index 68c5720ad75d..867cf8f8e699 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-openstack-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-openstack-e2e.yaml @@ -445,8 +445,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-ovirt-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-ovirt-e2e.yaml index 4b6c45d3e367..ec4f6cdf6eb7 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-ovirt-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-ovirt-e2e.yaml @@ -323,9 +323,7 @@ objects: - /bin/sh - -c - | - #!/bin/bash - set -euo pipefail - + #!/bin/sh trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM # Wait untill lease is acquired @@ -451,8 +449,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml index c30451c4f3e5..1e934f673c9e 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml @@ -243,7 +243,7 @@ objects: - /bin/bash - -c - | - #!/bin/bash + #!/bin/sh set -euo pipefail trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT @@ -566,8 +566,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml index bbe0c53abc99..1d3f804da1b0 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml @@ -338,9 +338,8 @@ objects: - /bin/sh - -c - | - #!/bin/bash + #!/bin/sh set -euo pipefail - trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM @@ -1856,7 +1855,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail function queue() { local TARGET="${1}" diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-src.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-src.yaml index cf61001e54ae..af52259a13e0 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-src.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-upi-src.yaml @@ -333,9 +333,8 @@ objects: - /bin/sh - -c - | - #!/bin/bash - set -euo pipefail - + #!/bin/sh + set -e trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM @@ -1074,7 +1073,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail function queue() { local TARGET="${1}" diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-ansible.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-ansible.yaml index 973a2ce07abb..5a282787b377 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-ansible.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-ansible.yaml @@ -255,8 +255,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function teardown() { set +e touch /tmp/shared/exit diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-jenkins.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-jenkins.yaml index a34616f00e66..e724d58789a5 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-jenkins.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-openshift-jenkins.yaml @@ -312,8 +312,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function teardown() { set +e touch /tmp/shared/exit diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-upgrade.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-upgrade.yaml index 7fb5a9848ed6..500cc61e9558 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-upgrade.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e-upgrade.yaml @@ -260,8 +260,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function teardown() { set +e touch /tmp/shared/exit diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e.yaml index 33a3ceb71c34..9f0ec6e0d8b1 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-e2e.yaml @@ -216,8 +216,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function teardown() { set +e touch /tmp/shared/exit diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-src.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-src.yaml index 10309cc46150..852a19ec7d7b 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-launch-src.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-launch-src.yaml @@ -199,8 +199,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function teardown() { set +e touch /tmp/shared/exit diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml index ab50965035f3..b01ca0a66c64 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml @@ -224,9 +224,7 @@ objects: - /bin/sh - -c - | - #!/bin/bash - set -euo pipefail - + #!/bin/sh trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit /tmp/setup-failed; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM cp "$(command -v openshift-install)" /tmp @@ -364,8 +362,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail - function queue() { local TARGET="${1}" shift diff --git a/ci-operator/templates/openshift/openshift-azure/cluster-launch-e2e-azure.yaml b/ci-operator/templates/openshift/openshift-azure/cluster-launch-e2e-azure.yaml index da782e9d5d8c..63e6cffc0be8 100644 --- a/ci-operator/templates/openshift/openshift-azure/cluster-launch-e2e-azure.yaml +++ b/ci-operator/templates/openshift/openshift-azure/cluster-launch-e2e-azure.yaml @@ -158,6 +158,7 @@ objects: - -c - | #!/bin/bash + # error handling and sync code set -euo pipefail trap 'touch /tmp/shared/exit' EXIT @@ -270,7 +271,7 @@ objects: - /bin/bash - -c - | - #!/bin/bash + #!/bin/bash set -euo pipefail trap 'rc=$?; if [[ $rc -ne 0 ]]; then @@ -360,7 +361,6 @@ objects: - -c - | #!/bin/bash - set -euo pipefail # teardown is collecting debug data and deleting all used resources function teardown() {