2017-09-29 01:57:35 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source $(dirname $0)/common.sh
|
|
|
|
|
2019-11-20 04:19:55 +08:00
|
|
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
2019-10-24 08:54:43 +08:00
|
|
|
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
|
2017-09-29 01:57:35 +08:00
|
|
|
|
2021-02-08 23:22:52 +08:00
|
|
|
java -jar /spring-boot-release-scripts.jar publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
|
2017-09-29 01:57:35 +08:00
|
|
|
|
2021-02-08 23:22:52 +08:00
|
|
|
java -jar /spring-boot-release-scripts.jar promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
|
2017-09-29 01:57:35 +08:00
|
|
|
|
|
|
|
echo "Promotion complete"
|
2018-11-16 03:15:33 +08:00
|
|
|
echo $version > version/version
|