Tony CHEMIT pushed to branch develop at ultreia.io / ird-observe

Commits:

1 changed file:

Changes:

  • bin/stage_create.sh
    ... ... @@ -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