TSK-1050: fixed pushback to github and let the build fail if it wont work

This commit is contained in:
Mustapha Zorgati 2020-01-24 11:19:59 +01:00
parent eb53a3de66
commit b9e2cc4214
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,9 @@ jobs:
!:taskana-rest-spring-example-boot,!:taskana-rest-spring-example-wildfly,\
!:taskana-simplehistory-spring-test,!:taskana-simplehistory-rest-spring-example
before_cache: rm -rf "$HOME/.m2/repository/pro/taskana"
after_success: ci/change_version.sh -i -m . && ci/commitPoms.sh
# travis_terminate is necessary since after_success is a job phase which can change the build result.
# it is not documented, so this is a little hack. see: https://docs.travis-ci.com/user/job-lifecycle/#breaking-the-build
after_success: ci/change_version.sh -i -m . && ci/commitPoms.sh || travis_terminate 1
deploy:
provider: cloudfoundry
username: $BLUEMIX_ACCOUNT

View File

@ -61,9 +61,7 @@ function main() {
git config --global user.name $GH_USERNAME
#commit all poms
git checkout -b "$branch"
#to compensate new updates
git pull
git checkout "$branch"
git add "./*pom.xml"
for file in "$@"; do
[[ -n "$file" ]] && git add "$file"