Skip to content

Commit 20157f6

Browse files
committed
Capture log bundle in install step.
In the event of an installation failure, log bundles were not being added to artifacts dir. This commit attempts to identify a log bundle by pattern matching and discards any errors if the file doesn't exist.
1 parent af7741b commit 20157f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci-operator/step-registry/ipi/install/install/ipi-install-install-commands.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ cp \
4848
"${dir}/metadata.json" \
4949
"${dir}/terraform.tfstate"
5050
cp "${dir}/.openshift_install.log" "${ARTIFACT_DIR}/"
51+
cp "${dir}"/log-bundle-*.tar.gz "${ARTIFACT_DIR}/" 2>/dev/null || :
5152
exit "$ret"

0 commit comments

Comments
 (0)