Skip to content

Commit a8f147d

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Figuring out why JSON isn't being parsed properly.
1 parent 4ead2e3 commit a8f147d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/test/travis-ci/functions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ die() { echo -e "E: ${1}" 1>&2; exit "${2:-1}"; }
3232
#
3333
set_status()
3434
{
35-
local job_name=${NAME}
35+
local job_name="${NAME}"
3636
local payload=""
3737

3838
payload=$(<<< "
@@ -43,6 +43,9 @@ set_status()
4343
'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
4444
}" tr '"' '"')
4545

46+
echo "${payload}"
47+
<<< "${payload}" jq .
48+
4649
curl --user "${MBED_BOT}" --request POST \
4750
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA:-${TRAVIS_COMMIT}}" \
4851
--data @- <<< "${payload}"

0 commit comments

Comments
 (0)