Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AndroidBuildScript
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
AndroidBuildScript
Commits
6b7547a9
Commit
6b7547a9
authored
Mar 15, 2021
by
maweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增APP版本
parent
d4c3c094
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
.name
.idea/.name
+0
-1
Register.Method.gradle
BuildScript/Register.Method.gradle
+4
-5
No files found.
.idea/.name
deleted
100644 → 0
View file @
d4c3c094
AndroidBuildScript
\ No newline at end of file
BuildScript/Register.Method.gradle
View file @
6b7547a9
...
@@ -21,7 +21,7 @@ def getPropertiesValue(def filePath, def key, def value) {
...
@@ -21,7 +21,7 @@ def getPropertiesValue(def filePath, def key, def value) {
def
getBuildUserId
()
{
def
getBuildUserId
()
{
if
(
System
.
getenv
(
"BUILD_USER_ID"
)
==
null
)
return
"UNKNOWN"
if
(
System
.
getenv
(
"BUILD_USER_ID"
)
==
null
)
return
"UNKNOWN"
return
S
ystem
.
getenv
(
"BUILD_USER_ID"
)
return
S
tring
.
valueOf
(
System
.
getenv
(
"BUILD_USER_ID"
)
)
}
}
def
getBuildTime
(
def
pattern
)
{
def
getBuildTime
(
def
pattern
)
{
...
@@ -35,7 +35,7 @@ def isJenkins() {
...
@@ -35,7 +35,7 @@ def isJenkins() {
def
getBuildNumber
()
{
def
getBuildNumber
()
{
if
(
System
.
getenv
(
"BUILD_NUMBER"
)
==
null
)
return
"1"
if
(
System
.
getenv
(
"BUILD_NUMBER"
)
==
null
)
return
"1"
return
S
ystem
.
getenv
(
"BUILD_NUMBER"
)
return
S
tring
.
valueOf
(
System
.
getenv
(
"BUILD_NUMBER"
)
)
}
}
def
getBuildOS
()
{
def
getBuildOS
()
{
...
@@ -59,7 +59,7 @@ def getRevision() {
...
@@ -59,7 +59,7 @@ def getRevision() {
commandLine
'git'
,
'rev-parse'
,
'--short'
,
'HEAD'
commandLine
'git'
,
'rev-parse'
,
'--short'
,
'HEAD'
standardOutput
=
code
standardOutput
=
code
}
}
return
code
.
toString
().
trim
(
)
return
String
.
valueOf
(
code
.
toString
().
trim
()
)
}
}
def
getChannel
()
{
def
getChannel
()
{
...
@@ -98,14 +98,13 @@ task printenv() {
...
@@ -98,14 +98,13 @@ task printenv() {
// for (Map.Entry<String, String> entry : System.getenv()) {
// for (Map.Entry<String, String> entry : System.getenv()) {
// println("key:${entry.key},value:${entry.value}")
// println("key:${entry.key},value:${entry.value}")
// }
// }
//
getBizModuleLastVersion()
getBizModuleLastVersion
()
}
}
def
getBizModuleLastVersion
()
{
def
getBizModuleLastVersion
()
{
def
modules
=
[
def
modules
=
[
"yit_shell"
,
"yit_shell"
,
"yit_flutter"
,
"yit_shop"
,
"yit_shop"
,
"yit_live"
,
"yit_live"
,
"yit_cms"
,
"yit_cms"
,
...
...
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