Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
global-jenkinsfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
global-jenkinsfile
Commits
377c17be
Commit
377c17be
authored
Jun 22, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9f3be484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+10
-10
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
377c17be
...
...
@@ -271,23 +271,23 @@ def ext_npm_intall(){
return
0
}
def
build
(
buildType
,
systemName
,
contextDir
){
def
build
(
buildType
,
systemName
,
branchName
,
contextDir
){
_utils
().
beautyEcho
(
"Build +++ type:${buildType} systemName:${systemName}"
,
"info"
)
switch
(
buildType
){
case
"java"
:
build_java
(
systemName
,
contextDir
)
build_java
(
systemName
,
branchName
,
contextDir
)
break
case
"nodejs"
:
sh
"which node"
build_nodejs
(
systemName
,
contextDir
)
build_nodejs
(
systemName
,
branchName
,
contextDir
)
break
case
"python"
:
build_python
(
systemName
,
contextDir
)
build_python
(
systemName
,
branchName
,
contextDir
)
break
case
"lua-ui"
:
sh
"which node"
build_luaui
(
systemName
,
contextDir
)
build_luaui
(
systemName
,
branchName
,
contextDir
)
break
default:
echo
"未知的buildType: ${buildType}"
...
...
@@ -297,7 +297,7 @@ def build(buildType,systemName, contextDir){
}
def
build_java
(
systemName
,
contextDir
)
{
def
build_java
(
systemName
,
branchName
,
contextDir
)
{
def
projectAttr
=
project_attr
(
systemName
)
buildCmd
=
projectAttr
[
"buildCmd"
]
...
...
@@ -307,7 +307,7 @@ def build_java(systemName, contextDir) {
sh
"cp ${jarFilePath}/*.jar ${contextDir}/app.jar"
}
def
build_nodejs
(
systemName
,
contextDir
)
{
def
build_nodejs
(
systemName
,
branchName
,
contextDir
)
{
def
projectAttr
=
project_attr
(
systemName
)
configPath
=
projectAttr
[
"configPath"
]
...
...
@@ -319,7 +319,7 @@ def build_nodejs( systemName, contextDir) {
}
def
build_python
(
systemName
,
contextDir
)
{
def
build_python
(
systemName
,
branchName
,
contextDir
)
{
sh
"cp -rf ${contextDir}/config.ini server/config/release/config.ini"
sh
"cp -rf ${contextDir}/config.ini server/config/beta/config.ini"
sh
"tar zcf ${contextDir}/dist.tgz server/"
...
...
@@ -328,7 +328,7 @@ def build_python( systemName, contextDir) {
}
def
build_luaui
(
systemName
,
contextDir
)
{
def
build_luaui
(
systemName
,
branchName
,
contextDir
)
{
def
projectAttr
=
project_attr
(
systemName
)
configPath
=
projectAttr
[
"configPath"
]
...
...
@@ -524,7 +524,7 @@ def cpb(buildType,systemName,branchName,contextDir){
}
/*build*/
stage
(
'Build'
){
build
(
buildType
,
systemName
,
contextDir
)
build
(
buildType
,
systemName
,
branchName
,
contextDir
)
}
return
branchHashCode
...
...
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