diff --git a/hooks/post-checkout b/hooks/post-checkout index 402283f..fa1c118 100644 --- a/hooks/post-checkout +++ b/hooks/post-checkout @@ -49,6 +49,7 @@ if [ $TYPE == 'CARD' ] 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 [ $ROWS_JSON == "none" ] then ROWS_JSON='{ "keyValue":{ "topLabel":"'"$ROW_TITLE"'","content":"'"$ROW_INFO"'","button":{ "textButton":{ "text":"OPEN REPORT","onClick":{ "openLink":{ "url":"'"$ROW_URL"'"}}}}}}'