فهرست منبع

Release Scripts

Added scripts for pushing released artifacts to the appropriate
repositories.
Josh Cummings 6 سال پیش
والد
کامیت
d01b6fc6b1
2فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 6 0
      scripts/release/push-to-spring-distributions.sh
  2. 7 0
      scripts/release/sync-to-central.sh

+ 6 - 0
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"}'

+ 7 - 0
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\"}"