Commit f008a303 by chengfengpiaopiao

jenkins 打包路径错误

parent 30702001
Showing with 5 additions and 2 deletions
......@@ -111,12 +111,15 @@ android {
def outputFile = output.outputFile
def channelName = variant.productFlavors[0].name
def fileName
if ("false".equals(is_jenkins)) {
println("is_jenkins: " + is_jenkins) //build.gralde根据module的个数,执行的次数为module.mount+1
println("projectName: " + projectName)
if ("false".equals(is_jenkins)) { //groovy boolean 如果你把一个对象放在一个boolean表达式中,Groovy 会检查这个对象是否为null. 它会把null当做false,否则为true
fileName = "duobaojingcai_${channelName}_v${defaultConfig.versionName}${suffixName[networkType]}.apk"
outputFile = "G:/Apks/${projectName}"
} else {
channelName = PRODUCT_FLAAVOR_BUILD
outputFile = "/vagrant/jenkins/jenkins-workspace/walleApps/${projectName}"
//outputFile = "/vagrant/jenkins/jenkins-workspace/walleApps/${projectName}"
outputFile = "/var/jenkins_home/walleApps/${projectName}"
if ("release".equals(env)) {
fileName = "duobaojingcai_${channelName}_v${defaultConfig.versionName}_${env}.apk"
outputFile = outputFile + "/release"
......
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