From 749517186586079a39b1b58d4d8db97452bcd453 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Oct 2018 10:46:51 -0700 Subject: [PATCH] cluster-launch-installer-e2e: Make /tmp/artifacts/installer Avoid: /bin/sh: line 5: /tmp/artifacts/installer/version: No such file or directory in the container logs, fixing a bug from eba17a16 (cluster-launch-installer-e2e: Log the installer version, 2018-10-19, #1981) --- .../openshift/installer/cluster-launch-installer-e2e.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 4ad69c4f84cc0..fef8ff91793db 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -264,8 +264,10 @@ objects: trap 'rc=$?; if test "${rc}" -ne 0; then touch /tmp/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN}; fi' TERM - export _CI_ONLY_STAY_AWAY_OPENSHIFT_INSTALL_AWS_USER_TAGS="{\"expirationDate\": \"$(date -d '4 hours' --iso=minutes --utc)\"}" + mkdir /tmp/artifacts/installer && /bin/openshift-install version >/tmp/artifacts/installer/version + + export _CI_ONLY_STAY_AWAY_OPENSHIFT_INSTALL_AWS_USER_TAGS="{\"expirationDate\": \"$(date -d '4 hours' --iso=minutes --utc)\"}" /bin/openshift-install --dir=/tmp/artifacts/installer --log-level=debug cluster & wait