Skip to content

Commit

Permalink
feat: Implement informative terminate() messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoScordino committed Sep 23, 2024
1 parent 8e626dc commit 0dae0ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ sendTG_edit_wrapper() {
# 1st arg should be either 1 ( error ) or 0 ( success )
terminate() {
if [[ ${1:?} == "0" ]]; then
local string="Done"
local string="Done (<a href=\"${BUILD_URL}\">#${BUILD_ID}</a>)"
else
local string="Failed!"
local string="Failed! (<a href=\"${BUILD_URL}\">\"#${BUILD_ID}\"</a>)
View <a href=\"${BUILD_URL}consoleText\">console logs</a> for more."
fi
sendTG reply "${MESSAGE_ID}" "Job ${string}"
exit "${1:?}"
Expand Down

0 comments on commit 0dae0ed

Please # to comment.