Commit 48126f56 by chengfengpiaopiao

jenkins 非正式包增加时间戳后缀

parent 93ed3568
Showing with 11 additions and 3 deletions
...@@ -12,6 +12,13 @@ if (customPropsFile.canRead()) { ...@@ -12,6 +12,13 @@ if (customPropsFile.canRead()) {
} }
println("suffixName: " + suffixName[networkType]) println("suffixName: " + suffixName[networkType])
def getDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMddHHmm')
return formattedDate
}
android { android {
compileSdkVersion 23 compileSdkVersion 23
buildToolsVersion "23.0.3" buildToolsVersion "23.0.3"
...@@ -80,7 +87,7 @@ android { ...@@ -80,7 +87,7 @@ android {
}else{ }else{
channelName = PRODUCT_FLAAVOR_BUILD channelName = PRODUCT_FLAAVOR_BUILD
def env = ENVIRONMENT def env = ENVIRONMENT
def packTime = JENKINS_TIME def packTime = getDate();
def fileName; def fileName;
//outputFile = "/vagrant/jenkins/jenkins-workspace/walleApps" //outputFile = "/vagrant/jenkins/jenkins-workspace/walleApps"
outputFile = "/var/jenkins_home/walleApps" outputFile = "/var/jenkins_home/walleApps"
......
...@@ -33,4 +33,5 @@ IS_JENKINS = false ...@@ -33,4 +33,5 @@ IS_JENKINS = false
ENVIRONMENT = "debug" ENVIRONMENT = "debug"
PRODUCT_FLAAVOR_BUILD = "base" PRODUCT_FLAAVOR_BUILD = "base"
JENKINS_TIME = "" #dynamicparamter has a bug
\ No newline at end of file JENKINS_TIME = ""
\ No newline at end of file
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 sign in to comment