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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed printing of messages to be directed to STDERR rather than STD…
…OUT when errors encountered while triggering child builds.
  • Loading branch information
jgebal committed Jul 8, 2018
commit 4c6476b9593902b2a7720232893853afdbb140b6
13 changes: 7 additions & 6 deletions .travis/trigger_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# the job, but won't be visible to anyone browsing https://travis-ci.org/.
#

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

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

if grep -q '"@type": "error"' ${DOWNSTREAM_BUILD}-output.txt; then
RESULT=0
echo ""
echo "Failed to start ${DOWNSTREAM_BUILD}"
echo ""
echoerr ""
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
echoerr ""
fi
if grep -q 'access denied' ${DOWNSTREAM_BUILD}-output.txt; then
RESULT=0
echo ""
echo "Failed to start ${DOWNSTREAM_BUILD}"
echo ""
echoerr ""
echoerr "Failed to start ${DOWNSTREAM_BUILD}"
echoerr ""
fi

done
Expand Down