提交jenkins自动化流水线
This commit is contained in:
Vendored
+2
-4
@@ -58,10 +58,8 @@ pipeline {
|
||||
// 1. 生成 local.properties 指定 SDK 路径
|
||||
sh "echo 'sdk.dir=${ANDROID_SDK}' > Android/local.properties"
|
||||
|
||||
// 2. 直接给 gradlew 加权限(不进入目录)
|
||||
sh "chmod +x Android/gradlew"
|
||||
// 3. 直接执行编译(核心:Android/gradlew)
|
||||
sh "gradle assembleRelease --offline -g ${WORKSPACE}/gradle-home -p Android"
|
||||
// 3. 直接执行编译(核心:Android/gradlew) --offline
|
||||
sh "gradle assembleRelease -g ${WORKSPACE}/gradle-home -p Android"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user