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) {
def getBuildUserId() {
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) {
......@@ -35,7 +35,7 @@ def isJenkins() {
def getBuildNumber() {
if (System.getenv("BUILD_NUMBER") == null) return "1"
return System.getenv("BUILD_NUMBER")
return String.valueOf(System.getenv("BUILD_NUMBER"))
}
def getBuildOS() {
......@@ -59,7 +59,7 @@ def getRevision() {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = code
}
return code.toString().trim()
return String.valueOf(code.toString().trim())
}
def getChannel() {
......@@ -98,14 +98,13 @@ task printenv() {
// for (Map.Entry<String, String> entry : System.getenv()) {
// println("key:${entry.key},value:${entry.value}")
// }
// getBizModuleLastVersion()
getBizModuleLastVersion()
}
def getBizModuleLastVersion() {
def modules = [
"yit_shell",
"yit_flutter",
"yit_shop",
"yit_live",
"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