Commit 2e613d45 by chengfengpiaopiao

jenkins release测试

parent 9dfdfbc1
Showing with 15 additions and 2 deletions
......@@ -27,7 +27,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
......@@ -122,7 +122,7 @@ android {
//outputFile = "/vagrant/jenkins/jenkins-workspace/walleApps/${projectName}"
outputFile = "/var/jenkins_home/walleApps/${projectName}"
if ("release".equals(env)) {
fileName = "${projectNameLowerCase}_${channelName}_v${defaultConfig.versionName}_${env}.apk"
fileName = "${projectNameLowerCase}_${channelName}_v${defaultConfig.versionName}_${env}_${packTime}.apk"
outputFile = outputFile + "/"+"${env}"
} else {
fileName = "${projectNameLowerCase}_${channelName}_v${defaultConfig.versionName}_${env}_${packTime}.apk"
......@@ -171,3 +171,15 @@ android {
task hello1 << {
println 'hello1'+"app.build.gradle"
}
//执行Shell命令
task execShell (type:Exec){
executable 'sh'
args "shell.sh"
}
task startApp(type: Exec){
task ->
workingDir '.'
commandLine 'cd'
}
\ 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