Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
唐文
/
AiyoZhuaWaWa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2e613d45
authored
Nov 30, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jenkins release测试
parent
9dfdfbc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
.idea/misc.xml
app/build.gradle
.idea/misc.xml
View file @
2e613d45
...
...
@@ -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"
>
...
...
app/build.gradle
View file @
2e613d45
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment