File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
ci-operator/templates/openshift Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ objects:
299
299
- |
300
300
#!/bin/sh
301
301
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
302
- trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
302
+ trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait ; fi' TERM
303
303
304
304
mkdir /tmp/artifacts/installer &&
305
305
/bin/openshift-install version >/tmp/artifacts/installer/version
@@ -373,7 +373,8 @@ objects:
373
373
exit 1
374
374
fi
375
375
376
- /bin/openshift-install --dir=/tmp/artifacts/installer create cluster
376
+ /bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
377
+ wait "$!"
377
378
378
379
# Performs cleanup of all created resources
379
380
- name : teardown
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ objects:
173
173
#!/bin/sh
174
174
set -euo pipefail
175
175
trap 'rc=$?; if test "${rc}" -eq 0; then touch "${HOME}"/setup-success; else touch "${HOME}"/exit; fi; exit "${rc}"' EXIT
176
- trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
176
+ trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait ; fi' TERM
177
177
cat > "${HOME}"/router-check.sh << 'EOF'
178
178
#!/bin/bash
179
179
set -euo pipefail
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ objects:
264
264
- |
265
265
#!/bin/sh
266
266
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
267
- trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
267
+ trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait ; fi' TERM
268
268
269
269
mkdir /tmp/artifacts/installer &&
270
270
/bin/openshift-install version >/tmp/artifacts/installer/version
@@ -338,7 +338,8 @@ objects:
338
338
exit 1
339
339
fi
340
340
341
- /bin/openshift-install --dir=/tmp/artifacts/installer create cluster
341
+ /bin/openshift-install --dir=/tmp/artifacts/installer create cluster &
342
+ wait "$!"
342
343
343
344
# Performs cleanup of all created resources
344
345
- name : teardown
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ objects:
262
262
- |
263
263
#!/bin/sh
264
264
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/config-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
265
- trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
265
+ trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait ; fi' TERM
266
266
267
267
mkdir /tmp/artifacts/installer &&
268
268
/bin/openshift-install version >/tmp/artifacts/installer/version
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ objects:
303
303
- |
304
304
#!/bin/sh
305
305
trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT
306
- trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM
306
+ trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait ; fi' TERM
307
307
308
308
mkdir /tmp/artifacts/installer &&
309
309
/bin/openshift-install version >/tmp/artifacts/installer/version
You can’t perform that action at this time.
0 commit comments