Tony CHEMIT pushed to branch develop at ultreia.io / ird-observe
Commits:
-
187db334
by Tony CHEMIT at 2017-03-08T18:01:38+01:00
-
059ff71f
by Tony CHEMIT at 2017-03-08T18:09:10+01:00
-
2ac0abaf
by Tony CHEMIT at 2017-03-08T18:09:45+01:00
-
09ecd5dd
by Tony CHEMIT at 2017-03-08T18:09:49+01:00
-
290ef09a
by Tony CHEMIT at 2017-03-08T18:09:50+01:00
-
c98241e0
by Tony CHEMIT at 2017-03-08T18:09:51+01:00
1 changed file:
Changes:
| ... | ... | @@ -18,23 +18,39 @@ git checkout -B ${DEVELOP} |
| 18 | 18 |
|
| 19 | 19 |
echo "Start release: $VERSION ($LOG_DIR/release-start.log)"
|
| 20 | 20 |
mvn jgitflow:release-start -B -Prelease-profile --log-file ${LOG_DIR}/release-start.log
|
| 21 |
- |
|
| 21 |
+if [ ! "$?" == "0" ]; then
|
|
| 22 |
+ echo "Error"
|
|
| 23 |
+ exit 1
|
|
| 24 |
+fi
|
|
| 22 | 25 |
echo "Finish release: $VERSION ($LOG_DIR/release-finish.log)"
|
| 23 | 26 |
mvn jgitflow:release-finish -Prelease-profile --log-file ${LOG_DIR}/release-finish.log
|
| 24 |
- |
|
| 27 |
+if [ ! "$?" == "0" ]; then
|
|
| 28 |
+ echo "Error"
|
|
| 29 |
+ exit 1
|
|
| 30 |
+fi
|
|
| 25 | 31 |
echo "Get staging id..."
|
| 26 | 32 |
STAGE_ID=$(mvn nexus-staging:rc-list | grep ${STAGE} | cut -d' ' -f2)
|
| 27 | 33 |
|
| 28 | 34 |
echo "Closing stage: $STAGE_ID ($LOG_DIR/release-close.log)"
|
| 29 | 35 |
mvn nexus-staging:close -DstagingRepositoryId=${STAGE_ID} --log-file ${LOG_DIR}/release-close.log
|
| 30 |
- |
|
| 36 |
+if [ ! "$?" == "0" ]; then
|
|
| 37 |
+ echo "Error"
|
|
| 38 |
+ exit 1
|
|
| 39 |
+fi
|
|
| 31 | 40 |
git checkout ${MASTER}
|
| 32 | 41 |
|
| 33 | 42 |
echo "Generate site: ($LOG_DIR/release-site.log)"
|
| 34 | 43 |
mvn verify site-deploy -DskipTests -DperformRelease --log-file ${LOG_DIR}/release-site.log
|
| 35 |
- |
|
| 44 |
+if [ ! "$?" == "0" ]; then
|
|
| 45 |
+ echo "Error"
|
|
| 46 |
+ exit 1
|
|
| 47 |
+fi
|
|
| 36 | 48 |
echo "Deploy demo: ($LOG_DIR/release-demo.log)"
|
| 37 | 49 |
mvn install -am -pl application-web -DskipTests -DperformRelease -Pdeploy-demo --log-file ${LOG_DIR}/release-demo.log
|
| 50 |
+if [ ! "$?" == "0" ]; then
|
|
| 51 |
+ echo "Error"
|
|
| 52 |
+ exit 1
|
|
| 53 |
+fi
|
|
| 38 | 54 |
|
| 39 | 55 |
git stash
|
| 40 | 56 |
git checkout ${DEVELOP}
|
| \ No newline at end of file |