File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,8 @@ deploy:
45
45
on :
46
46
tags : true
47
47
48
+ after_deploy :
49
+ - build/sync2MC.sh $BINTRAY_USER $BINTRAY_APIKEY sdk-maven-repo com.ibm.cloud.sdk:java-sdk-core $TRAVIS_TAG
50
+
48
51
notifications :
49
52
email : true
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ $# -lt 5 ]
4
+ then
5
+ echo "
6
+ Syntax:
7
+ $0 <bintray-user> <bintray-apikey> <bintray-reponame> <bintray-packagename> <bintray-packageversion>>
8
+ Example:
9
+ $0 user1 A1098765 my-bintray-repo1 my-bintray-package 0.0.1
10
+ "
11
+
12
+ exit 1
13
+ fi
14
+
15
+ subject=$1
16
+ apikey=$2
17
+ reponame=$3
18
+ pkgname=$4
19
+ pkgversion=$5
20
+
21
+ # set -x
22
+
23
+ urlstring=" https://api.bintray.com/maven_central_sync/${subject} /${reponame} /${pkgname} /versions/${pkgversion} "
24
+
25
+ basicauth=" ${subject} :${apikey} "
26
+
27
+ echo "
28
+ Executing curl command..."
29
+ curl -X POST --data ' { "close": "1" }' -H " Content-Type: application/json" -L -k --user ${basicauth} ${urlstring}
You can’t perform that action at this time.
0 commit comments