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
f008a303
authored
Nov 29, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jenkins 打包路径错误
parent
30702001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
app/build.gradle
app/build.gradle
View file @
f008a303
...
...
@@ -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"
...
...
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