build: reenable maven upload

fixed branch name retrieval issue
experimental
Kirill Vainer 9 years ago
parent daff85d651
commit afa9bcde7c
  1. 1
      .travis.yml
  2. 3
      version.gradle

@ -25,6 +25,7 @@ install:
script: script:
- ./gradlew check - ./gradlew check
- ./gradlew createZipDistribution - ./gradlew createZipDistribution
- "[ $TRAVIS_BRANCH == 'master' ] && [ $TRAVIS_PULL_REQUEST == 'false' ] && ./gradlew uploadArchives;"
before_deploy: before_deploy:
- export RELEASE_DIST=$(ls build/distributions/*.zip) - export RELEASE_DIST=$(ls build/distributions/*.zip)

@ -68,7 +68,8 @@ task configureVersionInfo {
if (System.env.TRAVIS_TAG != null) { if (System.env.TRAVIS_TAG != null) {
jmeGitTag = System.env.TRAVIS_TAG jmeGitTag = System.env.TRAVIS_TAG
} }
if (System.env.TRAVIS_PULL_REQUEST != null) { if (System.env.TRAVIS_PULL_REQUEST != null &&
System.env.TRAVIS_PULL_REQUEST != "false") {
jmeBranchName += "-pr-" + System.env.TRAVIS_PULL_REQUEST jmeBranchName += "-pr-" + System.env.TRAVIS_PULL_REQUEST
} }

Loading…
Cancel
Save