Commit 6b7547a9 authored by maweidong's avatar maweidong

feat:新增APP版本

parent d4c3c094
AndroidBuildScript
\ No newline at end of file
...@@ -21,7 +21,7 @@ def getPropertiesValue(def filePath, def key, def value) { ...@@ -21,7 +21,7 @@ def getPropertiesValue(def filePath, def key, def value) {
def getBuildUserId() { def getBuildUserId() {
if (System.getenv("BUILD_USER_ID") == null) return "UNKNOWN" if (System.getenv("BUILD_USER_ID") == null) return "UNKNOWN"
return System.getenv("BUILD_USER_ID") return String.valueOf(System.getenv("BUILD_USER_ID"))
} }
def getBuildTime(def pattern) { def getBuildTime(def pattern) {
...@@ -35,7 +35,7 @@ def isJenkins() { ...@@ -35,7 +35,7 @@ def isJenkins() {
def getBuildNumber() { def getBuildNumber() {
if (System.getenv("BUILD_NUMBER") == null) return "1" if (System.getenv("BUILD_NUMBER") == null) return "1"
return System.getenv("BUILD_NUMBER") return String.valueOf(System.getenv("BUILD_NUMBER"))
} }
def getBuildOS() { def getBuildOS() {
...@@ -59,7 +59,7 @@ def getRevision() { ...@@ -59,7 +59,7 @@ def getRevision() {
commandLine 'git', 'rev-parse', '--short', 'HEAD' commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = code standardOutput = code
} }
return code.toString().trim() return String.valueOf(code.toString().trim())
} }
def getChannel() { def getChannel() {
...@@ -98,14 +98,13 @@ task printenv() { ...@@ -98,14 +98,13 @@ task printenv() {
// for (Map.Entry<String, String> entry : System.getenv()) { // for (Map.Entry<String, String> entry : System.getenv()) {
// println("key:${entry.key},value:${entry.value}") // println("key:${entry.key},value:${entry.value}")
// } // }
// getBizModuleLastVersion() getBizModuleLastVersion()
} }
def getBizModuleLastVersion() { def getBizModuleLastVersion() {
def modules = [ def modules = [
"yit_shell", "yit_shell",
"yit_flutter",
"yit_shop", "yit_shop",
"yit_live", "yit_live",
"yit_cms", "yit_cms",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment