Skip to content

Commit

Permalink
Merge pull request #2680 from wking/re-background-create-cluster
Browse files Browse the repository at this point in the history
ci-operator/templates/openshift/installer: Restore backgrounded 'create cluster'
  • Loading branch information
openshift-merge-robot committed Jan 24, 2019
2 parents a16e55f + 4472ace commit 65365da
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ objects:
- |
#!/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}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down Expand Up @@ -373,7 +373,8 @@ objects:
exit 1
fi
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
wait "$!"
# Performs cleanup of all created resources
- name: teardown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ objects:
#!/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}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
cat > "${HOME}"/router-check.sh << 'EOF'
#!/bin/bash
set -euo pipefail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ objects:
- |
#!/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}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down Expand Up @@ -338,7 +338,8 @@ objects:
exit 1
fi
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster
/bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
wait "$!"
# Performs cleanup of all created resources
- name: teardown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ objects:
- |
#!/bin/sh
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/config-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ objects:
- |
#!/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}; fi' TERM
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM
mkdir /tmp/artifacts/installer &&
/bin/openshift-install version >/tmp/artifacts/installer/version
Expand Down

0 comments on commit 65365da

Please sign in to comment.