2018-03-13 08:07:15 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-10-24 08:54:43 +08:00
|
|
|
export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
|
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
|
|
|
java -jar /spring-boot-release-scripts.jar syncToCentral "RELEASE" $BUILD_INFO_LOCATION > /dev/null || { exit 1; }
|
2019-06-17 12:00:31 +08:00
|
|
|
|
2018-11-16 03:15:33 +08:00
|
|
|
echo "Sync complete"
|
2019-03-23 05:23:13 +08:00
|
|
|
echo $version > version/version
|