diff --git a/hooks/post-checkout b/hooks/post-checkout index fa1c118..4cb3bd3 100644 --- a/hooks/post-checkout +++ b/hooks/post-checkout @@ -48,8 +48,8 @@ if [ $TYPE == 'CARD' ] IFS=';' read -ra DETAILS <<< "$ROWS" for i in "${DETAILS[@]}"; do IFS=, read -r ROW_TITLE ROW_INFO ROW_URL <<< "$i" - if [ $ROW_INFO == "Failed" ]; then FAIL=1; fi - if [[ -z "$ROW_URL" ]] || [[ "${ROW_URL}" == "report not available" ]; then ROW_URL=$BUILD_URL; fi + if [ $ROW_INFO == "FAILED" ]; then FAIL=1; fi + if [[ -z "$ROW_URL" ]] || [[ "${ROW_URL}" == "report not available" ]]; then ROW_URL=$BUILD_URL; fi if [ $ROWS_JSON == "none" ] then ROWS_JSON='{ "keyValue":{ "topLabel":"'"$ROW_TITLE"'","content":"'"$ROW_INFO"'","button":{ "textButton":{ "text":"OPEN REPORT","onClick":{ "openLink":{ "url":"'"$ROW_URL"'"}}}}}}'