promote.sh 642 B

1234567891011121314151617
  1. #!/bin/bash
  2. CONFIG_DIR=git-repo/ci/config
  3. version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
  4. export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json
  5. java -jar /concourse-release-scripts.jar \
  6. --spring.config.location=${CONFIG_DIR}/release-scripts.yml \
  7. publishToCentral $RELEASE_TYPE $BUILD_INFO_LOCATION artifactory-repo || { exit 1; }
  8. java -jar /concourse-release-scripts.jar \
  9. --spring.config.location=${CONFIG_DIR}/release-scripts.yml \
  10. promote $RELEASE_TYPE $BUILD_INFO_LOCATION || { exit 1; }
  11. echo "Promotion complete"
  12. echo $version > version/version