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

Commits:

3 changed files:

Changes:

  • bin/release_create.sh
    1
    +#!/usr/bin/env bash
    
    2
    +
    
    3
    +PROJECT=ird-observe
    
    4
    +MASTER=master-5.x
    
    5
    +DEVELOP=develop-5.x
    
    6
    +STAGE=frirdobserve
    
    7
    +
    
    8
    +VERSION=$(grep -e "-SNAPSHOT" pom.xml | cut -d'>' -f2 | cut -d'<' -f1)
    
    9
    +VERSION=${VERSION/-SNAPSHOT/}
    
    10
    +LOG_DIR=/tmp/${PROJECT}-${VERSION}
    
    11
    +echo "version to release: $VERSION"
    
    12
    +echo "log dir: $LOG_DIR"
    
    13
    +rm -rf ${LOG_DIR}
    
    14
    +mkdir -p ${LOG_DIR}
    
    15
    +
    
    16
    +git checkout -B ${MASTER}
    
    17
    +git checkout -B ${DEVELOP}
    
    18
    +
    
    19
    +echo "Start release: $VERSION ($LOG_DIR/release-start.log)"
    
    20
    +mvn jgitflow:release-start -B -Prelease-profile --log-file ${LOG_DIR}/release-start.log
    
    21
    +if [ ! "$?" == "0" ]; then
    
    22
    +   echo "Error"
    
    23
    +   exit 1
    
    24
    +fi
    
    25
    +echo "Finish release: $VERSION ($LOG_DIR/release-finish.log)"
    
    26
    +mvn jgitflow:release-finish -Prelease-profile --log-file ${LOG_DIR}/release-finish.log
    
    27
    +if [ ! "$?" == "0" ]; then
    
    28
    +   echo "Error"
    
    29
    +   exit 1
    
    30
    +fi
    
    31
    +echo "Get staging id..."
    
    32
    +STAGE_ID=$(mvn nexus-staging:rc-list -N | grep ${STAGE} | cut -d' ' -f2 | awk '/./{line=$0} END{print line}')
    
    33
    +
    
    34
    +echo "Closing stage: $STAGE_ID ($LOG_DIR/stage-close.log)"
    
    35
    +mvn nexus-staging:close -N -DstagingRepositoryId=${STAGE_ID} --log-file ${LOG_DIR}/release-close.log
    
    36
    +if [ ! "$?" == "0" ]; then
    
    37
    +   echo "Error"
    
    38
    +   exit 1
    
    39
    +fi
    
    40
    +
    
    41
    +echo "Release stage: $STAGE_ID ($LOG_DIR/stage-release.log)"
    
    42
    +mvn nexus-staging:release -DstagingRepositoryId=${STAGE_ID} --log-file --log-file ${LOG_DIR}/stage-release.log

  • bin/stage_create.sh
    ... ... @@ -31,7 +31,7 @@ fi
    31 31
     echo "Get staging id..."
    
    32 32
     STAGE_ID=$(mvn nexus-staging:rc-list -N | grep ${STAGE} | cut -d' ' -f2 | awk '/./{line=$0} END{print line}')
    
    33 33
     
    
    34
    -echo "Closing stage: $STAGE_ID ($LOG_DIR/release-close.log)"
    
    34
    +echo "Closing stage: $STAGE_ID ($LOG_DIR/stage-close.log)"
    
    35 35
     mvn nexus-staging:close -N -DstagingRepositoryId=${STAGE_ID} --log-file ${LOG_DIR}/release-close.log
    
    36 36
     if [ ! "$?" == "0" ]; then
    
    37 37
        echo "Error"
    

  • pom.xml
    ... ... @@ -165,8 +165,6 @@
    165 165
         <organizationId>ultreia.io</organizationId>
    
    166 166
         <projectId>ird-observe</projectId>
    
    167 167
     
    
    168
    -    <gitlabPluginVersion>1.0.4</gitlabPluginVersion>
    
    169
    -
    
    170 168
         <eugenePluginVersion>3.0-alpha-10</eugenePluginVersion>
    
    171 169
         <processorPluginVersion>1.3</processorPluginVersion>
    
    172 170
         <jaxxVersion>2.42</jaxxVersion>
    
    ... ... @@ -214,7 +212,7 @@
    214 212
         <gitlab.changesTitle>ObServe changelog</gitlab.changesTitle>
    
    215 213
         <gitlab.changesAuthor>Tony Chemit</gitlab.changesAuthor>
    
    216 214
         <gitlab.changesAuthorEmail>dev@tchemit.fr</gitlab.changesAuthorEmail>
    
    217
    -    <gitlab.trackers>Anomalie,Evolution,Tache</gitlab.trackers>
    
    215
    +    <gitlab.trackers>Anomalie,Evolution,Tâche</gitlab.trackers>
    
    218 216
     
    
    219 217
         <maven.build.timestamp.format>dd/MM/yyyy HH:mm z</maven.build.timestamp.format>
    
    220 218
         <buildDate>${maven.build.timestamp}</buildDate>