mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Adjust publish logic to adhere to Travis spec
See the specifics here: http://docs.travis-ci.com/user/ci-environment/#Environment-variables
This commit is contained in:
parent
610f3a62ae
commit
394c5cacce
@ -244,7 +244,9 @@ publishing {
|
|||||||
|
|
||||||
artifactoryPublish {
|
artifactoryPublish {
|
||||||
onlyIf {
|
onlyIf {
|
||||||
System.env.'TRAVIS_BRANCH' == "master" && !System.env.'TRAVIS_PULL_REQUEST'.toBoolean()
|
// TRAVIS_BRANCH reports master if it is a master build or a PR going to master
|
||||||
|
// TRAVIS_PULL_REQUEST reports false if not a pull request and the PR number if it is
|
||||||
|
System.env.'TRAVIS_BRANCH' == "master" && System.env.'TRAVIS_PULL_REQUEST' == "false"
|
||||||
}
|
}
|
||||||
dependsOn assemble
|
dependsOn assemble
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user