Commit 69272c7 1 parent 3622fbf commit 69272c7 Copy full SHA for 69272c7
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 43
43
44
44
# run_diagnosis is called to retrieve details on the failure
45
45
run_diagnosis () {
46
- [[ $? -ne 1 ]] && exit $?
47
- [[ " ${CI} " != " true" ]] && exit $?
46
+ [[ $? -ne 1 ]] && exit 1
47
+ [[ " ${CI} " != " true" ]] && exit 1
48
48
49
49
echo " Running Diagnosis on failure"
50
50
51
51
mkdir -p /tmp/diagnostics
52
52
if kubectl cluster-info dump --namespaces terraform-system,apps --output-directory=/tmp/diagnostics > /dev/null; then
53
53
# @step: upload the files to the bucket
54
- BUCKET=" ${DIAGNOSTICS} /${GITHUB_RUN_ID } "
54
+ BUCKET=" ${DIAGNOSTICS} /${GITHUB_RUN_NUMBER } "
55
55
if ! aws s3 cp /tmp/diagnostics " ${BUCKET} " --acl private --recursive > /dev/null; then
56
56
echo " Failed to copy all the diagnostics"
57
57
exit 1
You can’t perform that action at this time.
0 commit comments