Merge pull request #11841 from sharifelgamal/ugly-err

remove ugly error message from kicbase and ISO autobuild
pull/11844/head
Medya Ghazizadeh 2021-06-30 17:26:37 -04:00 committed by GitHub
commit c2f18d9d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 20 deletions

View File

@ -45,16 +45,11 @@ make release-iso | tee iso-logs.txt
ec=$?
if [ $ec -gt 0 ]; then
if [ "$release" = false ]; then
err=$(tail -100 iso-logs.txt)
gh pr comment ${ghprbPullId} --body "Hi ${ghprbPullAuthorLoginMention}, building a new ISO failed, with the error below:
<details>
<pre>
${err}
</pre>
</details>
Full logs are at https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId}/${ghprbActualCommit:0:7}/iso_build.txt
gh pr comment ${ghprbPullId} --body "Hi ${ghprbPullAuthorLoginMention}, building a new ISO failed.
See the logs at:
```
https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId}/${ghprbActualCommit:0:7}/iso_build.txt
```
"
fi
exit $ec

View File

@ -67,16 +67,11 @@ CIBUILD=yes make push-kic-base-image | tee kic-logs.txt
ec=$?
if [ $ec -gt 0 ]; then
if [ "$release" = false ]; then
err=$(tail -100 kic-logs.txt)
gh pr comment ${ghprbPullId} --body "Hi ${ghprbPullAuthorLoginMention}, building a new kicbase image failed, with the error below:
<details>
<pre>
${err}
</pre>
</details>
Full logs are at https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId}/${ghprbActualCommit:0:7}/kic_image_build.txt
gh pr comment ${ghprbPullId} --body "Hi ${ghprbPullAuthorLoginMention}, building a new kicbase image failed.
See the logs at:
```
https://storage.cloud.google.com/minikube-builds/logs/${ghprbPullId}/${ghprbActualCommit:0:7}/kic_image_build.txt
```
"
fi
exit $ec