Tony CHEMIT pushed to branch develop-5.x at ultreia.io / ird-observe Commits: ca18ac86 by Tony CHEMIT at 2017-03-06T09:33:57+01:00 improve release script [skip ci] - - - - - 1 changed file: - bin/stage_create.sh Changes: ===================================== bin/stage_create.sh ===================================== --- a/bin/stage_create.sh +++ b/bin/stage_create.sh @@ -28,6 +28,12 @@ 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 +echo "Update changelog ($LOG_DIR/release-changelog.log)" +mvn -N -Pupdate-staging-changelog -Dgitlab.milestone=${VERSION} -Dgitlab.stagingUrl=https://oss.sonatype.org/content/repositories/${STAGE}-${STAGE_ID} --log-file ${LOG_DIR}/release-changelog.log + +git commit -m "Update changelog for version $VERSION" CHANGELOG.md + +git stash git checkout ${PROJECT}-${VERSION} echo "Generate site: ($LOG_DIR/release-site.log)" @@ -36,11 +42,5 @@ mvn verify site-deploy -DskipTests -DperformRelease --log-file ${LOG_DIR}/releas 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 -echo "Update changelog ($LOG_DIR/release-changelog.log)" -mvn -N -Pupdate-changelog -Dgitlab.staging -Dgitlab.stagingUrl=https://oss.sonatype.org/content/repositories/${STAGE}-${STAGE_ID} --log-file ${LOG_DIR}/release-changelog.log - -cp CHANGELOG.md /tmp git stash -git checkout ${DEVELOP} -mv /tmp/CHANGELOG.md . -git commit -m "Update changelog for version $VERSION" CHANGELOG.md \ No newline at end of file +git checkout ${DEVELOP} \ No newline at end of file View it on GitLab: https://gitlab.com/ultreia.io/ird-observe/commit/ca18ac8645550c75015a42244bb...
participants (1)
-
Tony CHEMIT