Fix: publish one if building on master branch
This commit is contained in:
parent
0599ba0be2
commit
0356258999
|
@ -157,7 +157,7 @@ artifactory {
|
||||||
|
|
||||||
artifactoryPublish.onlyIf {
|
artifactoryPublish.onlyIf {
|
||||||
(!pullRequest || pullRequest == 'false') &&
|
(!pullRequest || pullRequest == 'false') &&
|
||||||
project.version.endsWith('-SNAPSHOT') && (branchName.equals('master'))
|
project.version.endsWith('-SNAPSHOT') && (branchName == 'master')
|
||||||
}
|
}
|
||||||
|
|
||||||
bintray {
|
bintray {
|
||||||
|
@ -186,6 +186,8 @@ install {
|
||||||
}
|
}
|
||||||
|
|
||||||
task publish {
|
task publish {
|
||||||
|
|
||||||
|
print "publishing if master current branch: " + branchName
|
||||||
description = "Publishes snapshots to oss.jfrog.org and releases to Bintray/JCenter"
|
description = "Publishes snapshots to oss.jfrog.org and releases to Bintray/JCenter"
|
||||||
dependsOn artifactoryPublish, bintrayUpload
|
dependsOn artifactoryPublish, bintrayUpload
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue