2018-11-19 15:13:07 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2020-12-17 07:11:59 +01:00
|
|
|
CONFIG_DIR=git-repo/ci/config
|
2018-11-19 15:13:07 -08:00
|
|
|
|
|
|
|
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
2020-12-17 07:11:59 +01:00
|
|
|
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
|
2018-11-19 15:13:07 -08:00
|
|
|
|
2023-07-11 18:19:42 +02:00
|
|
|
java -jar /concourse-release-scripts.jar \
|
2021-03-12 13:36:11 +01:00
|
|
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
|
|
|
|
publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
|
2018-11-19 15:13:07 -08:00
|
|
|
|
2023-07-11 18:19:42 +02:00
|
|
|
java -jar /concourse-release-scripts.jar \
|
2020-12-17 07:11:59 +01:00
|
|
|
--spring.config.location=${CONFIG_DIR}/release-scripts.yml \
|
2021-03-12 13:36:11 +01:00
|
|
|
promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
|
2018-11-19 15:13:07 -08:00
|
|
|
|
|
|
|
|
echo "Promotion complete"
|
2020-12-17 07:11:59 +01:00
|
|
|
echo $version > version/version
|