File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,22 @@ cache:
14
14
15
15
install : true
16
16
17
- # For a tagged build, we'll set the maven artifact version #.
17
+ env :
18
+ global :
19
+ - BINTRAY_REPO=ibm-cloud-sdk-repo
20
+ - BINTRAY_PKGNAME=com.ibm.cloud:sdk-core
21
+
22
+ # For a tagged build, we'll set the maven artifact version #
23
+ # and resolve the variable references in the bintray config.
18
24
before_script :
19
25
- env
20
26
- echo "TRAVIS_TAG = '${TRAVIS_TAG}'"
21
27
- ' [ "${TRAVIS_TAG}" != "" ] && mvn versions:set -DnewVersion=${TRAVIS_TAG} -DgenerateBackupPoms=false || true'
28
+ - cat build/bintray-config.template | envsubst >bintray-config.json
22
29
23
30
script :
24
31
- mvn clean package
25
32
26
- # If we're going to deploy, we first resolve variables in our bintray config.
27
- before_deploy :
28
- - cat build/bintray-config.template | envsubst >bintray-config.json
29
- - cat bintray-config.json
30
-
31
33
deploy :
32
34
- provider : bintray
33
35
file : bintray-config.json
@@ -40,13 +42,13 @@ deploy:
40
42
api_key : $GITHUB_OAUTH_TOKEN
41
43
file_glob : true
42
44
file :
43
- - target/java- sdk-core-*.jar
45
+ - target/sdk-core-*.jar
44
46
skip_cleanup : true
45
47
on :
46
48
tags : true
47
49
48
- after_deploy :
49
- - build/sync2MC.sh $BINTRAY_USER $BINTRAY_APIKEY sdk-maven-repo com.ibm.cloud.sdk:java-sdk-core $TRAVIS_TAG
50
+ after_script :
51
+ - build/sync2MC.sh $BINTRAY_USER $BINTRAY_APIKEY $BINTRAY_REPONAME $BINTRAY_PKGNAME $TRAVIS_TAG
50
52
51
53
notifications :
52
54
email : true
Original file line number Diff line number Diff line change 1
1
{
2
2
"package": {
3
3
"vcs_url": "https://github.com/IBM/java-sdk-core.git",
4
- "repo": "ibm-cloud-sdk-repo ",
4
+ "repo": "${BINTRAY_REPONAME} ",
5
5
"issue_tracker_url": "https://github.com/IBM/java-sdk-core/issues",
6
- "subject": "padamstx ",
6
+ "subject": "${BINTRAY_USER} ",
7
7
"website_url": "https://github.com/IBM/java-sdk-core",
8
- "name": "com.ibm.cloud:sdk-core "
8
+ "name": "${BINTRAY_PKGNAME} "
9
9
},
10
10
11
11
"version": {
You can’t perform that action at this time.
0 commit comments