From d01b6fc6b1f97fecec2c99b85a585deff23babe4 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 19 Jun 2019 13:27:35 -0600 Subject: [PATCH] Release Scripts Added scripts for pushing released artifacts to the appropriate repositories. --- scripts/release/push-to-spring-distributions.sh | 6 ++++++ scripts/release/sync-to-central.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100755 scripts/release/push-to-spring-distributions.sh create mode 100755 scripts/release/sync-to-central.sh diff --git a/scripts/release/push-to-spring-distributions.sh b/scripts/release/push-to-spring-distributions.sh new file mode 100755 index 0000000000..f4bbcfedb3 --- /dev/null +++ b/scripts/release/push-to-spring-distributions.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +BUILD_NUMBER=$1 +ENCRYPTED_ARTIFACTORY_PWD=$2 +export ARTIFACTORY_BUILD_API_URL=https://repo.spring.io/api/build/distribute/Spring%20Security%20-%204.2.x%20-%20Default%20Job/$BUILD_NUMBER +curl -i -u buildmaster:$ENCRYPTED_ARTIFACTORY_PWD -XPOST $ARTIFACTORY_BUILD_API_URL -H "Content-Type: application/json" -d '{"sourceRepos": ["libs-release-local"], "targetRepo": "spring-distributions"}' diff --git a/scripts/release/sync-to-central.sh b/scripts/release/sync-to-central.sh new file mode 100755 index 0000000000..bfc27f01df --- /dev/null +++ b/scripts/release/sync-to-central.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +RELEASE_VERSION=$1 +BINTRAY_API_KEY=$2 +SONATYPE_USER_TOKEN=$3 +SONATYPE_USER_TOKEN_PWD=$4 +curl -i -u spring-operator:$BINTRAY_API_KEY -XPOST "https://api.bintray.com/maven_central_sync/spring/jars/org.springframework.security/versions/$RELEASE_VERSION" -H "Content-Type: application/json" -d "{\"username\": \"$SONATYPE_USER_TOKEN\", \"password\": \"$SONATYPE_USER_TOKEN_PWD\"}"