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

Commits:

4 changed files:

Changes:

  • bin/release_create.sh
    ... ... @@ -29,7 +29,7 @@ if [ ! "$?" == "0" ]; then
    29 29
        exit 1
    
    30 30
     fi
    
    31 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}')
    
    32
    +STAGE_ID=$(mvn nexus-staging:rc-list -N | grep ${STAGE} | grep OPEN | cut -d' ' -f2)
    
    33 33
     
    
    34 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
    
    ... ... @@ -39,4 +39,4 @@ if [ ! "$?" == "0" ]; then
    39 39
     fi
    
    40 40
     
    
    41 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
    42
    +mvn nexus-staging:release -N -DstagingRepositoryId=${STAGE_ID} --log-file --log-file ${LOG_DIR}/stage-release.log

  • bin/stage_create.sh
    ... ... @@ -29,7 +29,7 @@ if [ ! "$?" == "0" ]; then
    29 29
        exit 1
    
    30 30
     fi
    
    31 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}')
    
    32
    +STAGE_ID=$(mvn nexus-staging:rc-list -N | grep ${STAGE} | grep OPEN | cut -d' ' -f2)
    
    33 33
     
    
    34 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
    

  • bin/stage_drop.sh
    ... ... @@ -11,7 +11,7 @@ rm -rf ${LOG_DIR}
    11 11
     mkdir -p ${LOG_DIR}
    
    12 12
     
    
    13 13
     echo "Get staging id..."
    
    14
    -STAGE_ID=$(mvn nexus-staging:rc-list | grep ${STAGE} | cut -d' ' -f2 | awk '/./{line=$0} END{print line}')
    
    14
    +STAGE_ID=$(mvn -N nexus-staging:rc-list | grep ${STAGE} | cut -d' ' -f2 )
    
    15 15
     
    
    16 16
     echo "Stage drop: $STAGE_ID ($LOG_DIR/stage-drop.log)"
    
    17 17
     mvn nexus-staging:drop -DstagingRepositoryId=${STAGE_ID} --log-file --log-file ${LOG_DIR}/stage-release.log

  • bin/stage_release.sh
    1 1
     #!/usr/bin/env sh
    
    2 2
     
    
    3 3
     PROJECT=ird-observe
    
    4
    -MASTER=master-5.x
    
    5
    -DEVELOP=develop-5.x
    
    6 4
     STAGE=frirdobserve
    
    7 5
     
    
    8 6
     LOG_DIR=/tmp/${PROJECT}-stage
    
    ... ... @@ -11,7 +9,7 @@ rm -rf ${LOG_DIR}
    11 9
     mkdir -p ${LOG_DIR}
    
    12 10
     
    
    13 11
     echo "Get staging id..."
    
    14
    -STAGE_ID=$(mvn nexus-staging:rc-list | grep ${STAGE} | cut -d' ' -f2 | awk '/./{line=$0} END{print line}')
    
    12
    +STAGE_ID=$(mvn -N nexus-staging:rc-list | grep ${STAGE} | grep CLOSED | cut -d' ' -f2)
    
    15 13
     
    
    16 14
     echo "Stage release: $STAGE_ID ($LOG_DIR/stage-release.log)"
    
    17
    -mvn nexus-staging:release -DstagingRepositoryId=${STAGE_ID} --log-file --log-file ${LOG_DIR}/stage-release.log
    15
    +mvn nexus-staging:release -N -DstagingRepositoryId=${STAGE_ID} --log-file --log-file ${LOG_DIR}/stage-release.log