Tony CHEMIT pushed to branch develop at ultreia.io / ird-observe Commits: 187db334 by Tony CHEMIT at 2017-03-08T18:01:38+01:00 [jgitflow-maven-plugin]updating poms for branch'release/3.0-RC-1' with non-snapshot versions - - - - - 059ff71f by Tony CHEMIT at 2017-03-08T18:09:10+01:00 improve release script - - - - - 2ac0abaf by Tony CHEMIT at 2017-03-08T18:09:45+01:00 [jgitflow-maven-plugin]merging 'release/3.0-RC-1' into 'master' - - - - - 09ecd5dd by Tony CHEMIT at 2017-03-08T18:09:49+01:00 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts - - - - - 290ef09a by Tony CHEMIT at 2017-03-08T18:09:50+01:00 [jgitflow-maven-plugin]merging 'master' into 'develop' - - - - - c98241e0 by Tony CHEMIT at 2017-03-08T18:09:51+01:00 [jgitflow-maven-plugin]Updating develop poms back to pre merge state - - - - - 1 changed file: - bin/stage_create.sh Changes: ===================================== bin/stage_create.sh ===================================== --- a/bin/stage_create.sh +++ b/bin/stage_create.sh @@ -18,23 +18,39 @@ git checkout -B ${DEVELOP} echo "Start release: $VERSION ($LOG_DIR/release-start.log)" mvn jgitflow:release-start -B -Prelease-profile --log-file ${LOG_DIR}/release-start.log - +if [ ! "$?" == "0" ]; then + echo "Error" + exit 1 +fi echo "Finish release: $VERSION ($LOG_DIR/release-finish.log)" mvn jgitflow:release-finish -Prelease-profile --log-file ${LOG_DIR}/release-finish.log - +if [ ! "$?" == "0" ]; then + echo "Error" + exit 1 +fi echo "Get staging id..." STAGE_ID=$(mvn nexus-staging:rc-list | grep ${STAGE} | cut -d' ' -f2) echo "Closing stage: $STAGE_ID ($LOG_DIR/release-close.log)" mvn nexus-staging:close -DstagingRepositoryId=${STAGE_ID} --log-file ${LOG_DIR}/release-close.log - +if [ ! "$?" == "0" ]; then + echo "Error" + exit 1 +fi git checkout ${MASTER} echo "Generate site: ($LOG_DIR/release-site.log)" mvn verify site-deploy -DskipTests -DperformRelease --log-file ${LOG_DIR}/release-site.log - +if [ ! "$?" == "0" ]; then + echo "Error" + exit 1 +fi echo "Deploy demo: ($LOG_DIR/release-demo.log)" mvn install -am -pl application-web -DskipTests -DperformRelease -Pdeploy-demo --log-file ${LOG_DIR}/release-demo.log +if [ ! "$?" == "0" ]; then + echo "Error" + exit 1 +fi git stash git checkout ${DEVELOP} \ No newline at end of file View it on GitLab: https://gitlab.com/ultreia.io/ird-observe/compare/4443e6d5c2a78831cdf5ee836b...