From 0599ba0be2e2809dde5356b45651adf9a7c66fd2 Mon Sep 17 00:00:00 2001 From: Roman Mandeleil Date: Fri, 27 Mar 2015 12:03:42 +0300 Subject: [PATCH] Publish one if building on master branch --- ethereumj-core/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethereumj-core/build.gradle b/ethereumj-core/build.gradle index 470bfbb4..30b2a8a2 100644 --- a/ethereumj-core/build.gradle +++ b/ethereumj-core/build.gradle @@ -136,6 +136,7 @@ jacocoTestReport { def bintrayUsername = project.hasProperty('bintrayUser') ? project.bintrayUser : '' def bintrayPassword = project.hasProperty('bintrayKey') ? project.bintrayKey : '' def pullRequest = System.getenv('TRAVIS_PULL_REQUEST') +def branchName = System.getenv('TRAVIS_BRANCH') artifactory { contextUrl = 'http://oss.jfrog.org/artifactory' @@ -155,7 +156,8 @@ artifactory { } artifactoryPublish.onlyIf { - (!pullRequest || pullRequest == 'false') && project.version.endsWith('-SNAPSHOT') + (!pullRequest || pullRequest == 'false') && + project.version.endsWith('-SNAPSHOT') && (branchName.equals('master')) } bintray {