Explorar el Código

Try to get the tag name from properties

Toni Helenius hace 3 años
padre
commit
7cf0efc789
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      version.gradle

+ 2 - 2
version.gradle

@@ -137,8 +137,8 @@ task configureVersionInfo {
         jmeShortGitHash = head.abbreviatedId
         jmeShortGitHash = head.abbreviatedId
         jmeBranchName = grgit.branch.current.name
         jmeBranchName = grgit.branch.current.name
         
         
-        if (System.env.TRAVIS_TAG != null) {
-            jmeGitTag = System.env.TRAVIS_TAG
+        if (project.hasProperty("tag_name")) {
+            jmeGitTag = project.getProperty("tag_name")
         } else {
         } else {
             jmeGitTag = grgit.tag.list().find { it.commit == head }
             jmeGitTag = grgit.tag.list().find { it.commit == head }
         }
         }