File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 65
65
export ISO_BUCKET
66
66
fi
67
67
68
- make release-iso | tee iso-logs.txt
69
- # Abort with error message if above command failed
70
- ec=$?
71
- if [ $ec -gt 0 ]; then
72
- if [ " $release " = false ]; then
73
- gh pr comment ${ghprbPullId} --body " Hi ${ghprbPullAuthorLoginMention} , building a new ISO failed.
74
- See the logs at: https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId} /${ghprbActualCommit:: 7} /iso_build.txt
75
- "
76
- fi
77
- exit $ec
68
+ if ! make release-iso 2>&1 | tee iso-logs.txt; then
69
+ # Exit of `make` (PIPESTATUS[0]); fallback to 1 if unavailable
70
+ ec=${PIPESTATUS[0]:- 1}
71
+
72
+ # Only comment on non-release; default release=false if unset
73
+ if [[ ${release:- false} != " true" ]]; then
74
+ body=" $( cat << 'EOF '
75
+ Hi ${ghprbPullAuthorLoginMention}, building a new ISO failed for Commit ${ghprbActualCommit}
76
+ See the logs at:
77
+ https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId}/${ghprbActualCommit::7}/iso_build.txt
78
+ EOF
79
+ "
80
+
81
+ gh pr comment "${ghprbPullId}" --body "$body"
82
+
83
+ fi
84
+ exit "$ec"
78
85
fi
79
86
80
87
git config user.name "minikube-bot"
You can’t perform that action at this time.
0 commit comments