Skip to content

Commit

Permalink
Merge pull request #5 from daleront/master
Browse files Browse the repository at this point in the history
Change failed to FAILED for comparison
  • Loading branch information
dawshiek authored Jan 30, 2020
2 parents 744c6ee + 3b5df44 commit 7e3cf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -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"'"}}}}}}'
Expand Down

0 comments on commit 7e3cf33

Please sign in to comment.