Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c6476b

Browse files
committed
Changed printing of messages to be directed to STDERR rather than STDOUT when errors encountered while triggering child builds.
1 parent 27a361c commit 4c6476b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.travis/trigger_travis.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# the job, but won't be visible to anyone browsing https://travis-ci.org/.
1414
#
1515

16+
echoerr() { echo "$@" 1>&2; }
1617

1718
TRAVIS_URL=travis-ci.org
1819
BRANCH=develop
@@ -51,15 +52,15 @@ for DOWNSTREAM_BUILD in "${REPO_MATRIX[@]}"; do
5152

5253
if grep -q '"@type": "error"' ${DOWNSTREAM_BUILD}-output.txt; then
5354
RESULT=0
54-
echo ""
55-
echo "Failed to start ${DOWNSTREAM_BUILD}"
56-
echo ""
55+
echoerr ""
56+
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
57+
echoerr ""
5758
fi
5859
if grep -q 'access denied' ${DOWNSTREAM_BUILD}-output.txt; then
5960
RESULT=0
60-
echo ""
61-
echo "Failed to start ${DOWNSTREAM_BUILD}"
62-
echo ""
61+
echoerr ""
62+
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
63+
echoerr ""
6364
fi
6465

6566
done

0 commit comments

Comments
 (0)