diff --git a/scripts/travis/build_functions.sh b/scripts/travis/build_functions.sh index 25363294d0..d769a3148c 100644 --- a/scripts/travis/build_functions.sh +++ b/scripts/travis/build_functions.sh @@ -79,9 +79,17 @@ function pullAndBuildSameBranchOnUpstream() { if ! remoteBranchExists "${UPSTREAM_REPO}" "${SOURCE_BRANCH}" ; then printf "Branch \"%s\" not found on the %s repository\n" "${SOURCE_BRANCH}" "${UPSTREAM_REPO}" - exit 1 + #exit 1 fi + local SOURCE_BRANCH="${TRAVIS_BRANCH}" + if ! remoteBranchExists "${UPSTREAM_REPO}" "${SOURCE_BRANCH}" ; then + printf "Branch \"%s\" not found on the %s repository\n" "${SOURCE_BRANCH}" "${UPSTREAM_REPO}" + #exit 1 + fi + # TODO remove this line and enable the previous "exit" commands: + local SOURCE_BRANCH="master" + cloneRepo "${UPSTREAM_REPO}" "${SOURCE_BRANCH}" pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"