mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-13 13:53:29 +00:00
Release Scripts
Added scripts for pushing released artifacts to the appropriate repositories.
This commit is contained in:
parent
0994a64830
commit
d01b6fc6b1
6
scripts/release/push-to-spring-distributions.sh
Executable file
6
scripts/release/push-to-spring-distributions.sh
Executable 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"}'
|
7
scripts/release/sync-to-central.sh
Executable file
7
scripts/release/sync-to-central.sh
Executable 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\"}"
|
Loading…
x
Reference in New Issue
Block a user