2017-09-29 01:57:35 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-05 20:23:04 +08:00
|
|
|
CONFIG_DIR=git-repo/ci/config
|
2017-09-29 01:57:35 +08:00
|
|
|
|
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
|
|
|
|
2023-10-05 20:23:04 +08:00
|
|
|
java -jar /concourse-release-scripts.jar \
|
|
|
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
|
|
|
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
|
2017-09-29 01:57:35 +08:00
|
|
|
|
2023-10-05 20:23:04 +08:00
|
|
|
java -jar /concourse-release-scripts.jar \
|
|
|
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
|
|
|
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
|