Skip to content

Commit d6d1594

Browse files
committed
Echo warning to log if commenting the report link fails
1 parent 52f6f44 commit d6d1594

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arduino-ci-script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,9 @@ function comment_report_link()
10811081
local -r reportURL="$2"
10821082

10831083
eval curl $ARDUINO_CI_SCRIPT_VERBOSITY_OPTION --header "\"Authorization: token ${token}\"" --data \"{'\"'body'\"':'\"'Once completed, the job reports for Travis CI [build ${TRAVIS_BUILD_NUMBER}]\(https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}\) will be found at:\\n${reportURL}'\"'}\" "\"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/commits/${TRAVIS_COMMIT}/comments\"" "$ARDUINO_CI_SCRIPT_VERBOSITY_REDIRECT"
1084+
if [[ $? -ne $ARDUINO_CI_SCRIPT_SUCCESS_EXIT_STATUS ]]; then
1085+
echo "ERROR: Failed to comment link to published report location"
1086+
fi
10841087
}
10851088

10861089

0 commit comments

Comments
 (0)