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
2d0a2e02
authored
Nov 29, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jnekins IS_JENKINS改为booleanl类型
parent
8ce7b951
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
app/build.gradle
app/src/main/java/com/maile/jingcai/base/Constant.java
app/build.gradle
View file @
2d0a2e02
...
...
@@ -80,17 +80,17 @@ android {
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
each
{
output
->
def
outputFile
=
output
.
outputFile
print
(
"outputFile"
+
outputFile
)
;
print
(
"outputFile"
+
outputFile
)
def
channelName
=
variant
.
productFlavors
[
0
].
name
def
fileName
def
projectName
=
PROJECT_NAME
if
(
"false"
.
equals
(
IS_JENKINS
)
)
{
if
(
IS_JENKINS
)
{
fileName
=
"duobaojingcai_${channelName}_v${defaultConfig.versionName}${suffixName[networkType]}.apk"
outputFile
=
"G:/Apks/${projectName}"
}
else
{
channelName
=
PRODUCT_FLAAVOR_BUILD
def
env
=
ENVIRONMENT
def
packTime
=
getDate
()
;
def
packTime
=
getDate
()
outputFile
=
"/vagrant/jenkins/jenkins-workspace/walleApps/${projectName}"
if
(
"release"
.
equals
(
env
))
{
fileName
=
"duobaojingcai_${channelName}_v${defaultConfig.versionName}_${env}.apk"
...
...
app/src/main/java/com/maile/jingcai/base/Constant.java
View file @
2d0a2e02
...
...
@@ -2,7 +2,6 @@ package com.maile.jingcai.base;
import
android.os.Environment
;
import
com.maile.jingcai.BuildConfig
;
/**
* Created by chengfeng-piaopiao on 2017/11/9.
...
...
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