Travis CI environment variables with Gradle properties
问题 How can I use travis-ci env variables as Gradle's properties? I locally have my gradle.properties under the gradle path having: sonatypeRepo = abcd Which is used in my build.gradle : uploadArchives { //more repository(url: sonatypeRepo) { // more } //more } Of course locally it works. In travis I have added the variable under settings so I see the build log: Setting environment variables from repository settings $ export sonatypeRepo=[secure] And it fails like: FAILURE: Build failed with an