Fix: publish one if building on master branch

This commit is contained in:
Roman Mandeleil 2015-03-27 12:21:07 +03:00
parent 0599ba0be2
commit 0356258999
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,7 @@ artifactory {
artifactoryPublish.onlyIf {
(!pullRequest || pullRequest == 'false') &&
project.version.endsWith('-SNAPSHOT') && (branchName.equals('master'))
project.version.endsWith('-SNAPSHOT') && (branchName == 'master')
}
bintray {
@ -186,6 +186,8 @@ install {
}
task publish {
print "publishing if master current branch: " + branchName
description = "Publishes snapshots to oss.jfrog.org and releases to Bintray/JCenter"
dependsOn artifactoryPublish, bintrayUpload
}