Commit 48126f56 by chengfengpiaopiao

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

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