Skip to content

Commit 27b59cb

Browse files
committed
fix
1 parent 7ab6c45 commit 27b59cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
# Redirect all output of this script additionally to a file in artifacts,
4040
# so we can create a junit file with its content in case of general CI failures.
4141
# This way the bash script's log can be analyzed using k8s-triage.
42-
exec &> >(tee script.log)
42+
exec &> >(tee "${ARTIFACTS}/junit.e2e-sh.xml")
4343

4444
# shellcheck source=./hack/ensure-go.sh
4545
source "${REPO_ROOT}/hack/ensure-go.sh"
@@ -57,7 +57,7 @@ on_exit() {
5757
[[ -z ${HEART_BEAT_PID:-} ]] || kill -9 "${HEART_BEAT_PID}"
5858

5959
# If Boskos is being used then release the vsphere project.
60-
[ -z "${BOSKOS_HOST:-}" ] || docker run -e VSPHERE_USERNAME -e VSPHERE_PASSWORD gcr.io/k8s-staging-capi-vsphere/extra/boskosctl:latest release --boskos-host="${BOSKOS_HOST}" --resource-owner="${BOSKOS_RESOURCE_OWNER}" --resource-name="${BOSKOS_RESOURCE_NAME}" --vsphere-server="${VSPHERE_SERVER}" --vsphere-tls-thumbprint="${VSPHERE_TLS_THUMBPRINT}" --vsphere-folder="${BOSKOS_RESOURCE_FOLDER}" --vsphere-resource-pool="${BOSKOS_RESOURCE_POOL}"
60+
[ -z "${BOSKOS_HOST:-}" && -z "${BOSKOS_RESOURCE_NAME:-}" ] || docker run -e VSPHERE_USERNAME -e VSPHERE_PASSWORD gcr.io/k8s-staging-capi-vsphere/extra/boskosctl:latest release --boskos-host="${BOSKOS_HOST}" --resource-owner="${BOSKOS_RESOURCE_OWNER}" --resource-name="${BOSKOS_RESOURCE_NAME}" --vsphere-server="${VSPHERE_SERVER}" --vsphere-tls-thumbprint="${VSPHERE_TLS_THUMBPRINT}" --vsphere-folder="${BOSKOS_RESOURCE_FOLDER}" --vsphere-resource-pool="${BOSKOS_RESOURCE_POOL}"
6161
fi
6262

6363
# Cleanup VSPHERE_PASSWORD from temporary artifacts directory.

0 commit comments

Comments
 (0)