Release Scripts

Added scripts for pushing released artifacts to the appropriate
repositories.
This commit is contained in:
Josh Cummings 2019-06-19 13:27:35 -06:00
parent 0994a64830
commit d01b6fc6b1
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
2 changed files with 13 additions and 0 deletions

View File

@ -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"}'

View File

@ -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\"}"