Skip to content

Commit

Permalink
Upload artifacts only from master
Browse files Browse the repository at this point in the history
To prevent snapshot version upload from branches created by the committers
in the project repo directly.
  • Loading branch information
szpak authored and sbglasius committed Jun 6, 2016
1 parent 6729ea9 commit 16f2428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -158,7 +158,7 @@ if (gradle.startParameter.taskNames == ["travisCiBuild"]) {
maxParallelForks = 2
}
}
if (System.getenv("TRAVIS_PULL_REQUEST") == "false") {
if (System.getenv("TRAVIS_PULL_REQUEST") == "false" && System.getenv("TRAVIS_BRANCH") == "master") {
if (javaVersion == javaVersions.min()) {
gradle.startParameter.taskNames += ["uploadArchives"]
}
Expand Down

0 comments on commit 16f2428

Please sign in to comment.