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
632a51f9
Commit
632a51f9
authored
Dec 28, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs java bugs
parent
15ee785c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
StageBucket.groovy
src/org/qg/docker/StageBucket.groovy
+4
-0
qgDockerPipeline.groovy
vars/qgDockerPipeline.groovy
+12
-5
No files found.
src/org/qg/docker/StageBucket.groovy
View file @
632a51f9
...
@@ -56,6 +56,10 @@ def prepare_python(contextDir) {
...
@@ -56,6 +56,10 @@ def prepare_python(contextDir) {
}
}
def
checkout
(
branchName
,
gitRepo
)
{
def
checkout
(
branchName
,
gitRepo
)
{
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
"git@git.quantgroup.cn:${gitRepo}.git"
}
def
checkoutUI
(
branchName
,
gitRepo
)
{
if
(
gitRepo
.
contains
(
"--"
)){
if
(
gitRepo
.
contains
(
"--"
)){
t1
=
gitRepo
.
split
(
"/"
)
t1
=
gitRepo
.
split
(
"/"
)
groups
=
t1
[
0
].
split
(
"--"
)
groups
=
t1
[
0
].
split
(
"--"
)
...
...
vars/qgDockerPipeline.groovy
View file @
632a51f9
...
@@ -38,7 +38,14 @@ def call(body) {
...
@@ -38,7 +38,14 @@ def call(body) {
stage
(
'Checkout'
)
{
stage
(
'Checkout'
)
{
_utils
.
beautyEcho
(
2
,
'Checkout'
)
_utils
.
beautyEcho
(
2
,
'Checkout'
)
_stage
.
checkout
(
branchName
,
gitRepo
)
switch
(
config
.
buildType
)
{
case
"lua-ui"
:
_stage
.
checkoutUI
(
branchName
,
gitRepo
)
break
default:
_stage
.
checkout
(
branchName
,
gitRepo
)
break
}
}
}
stage
(
'Prepare'
)
{
stage
(
'Prepare'
)
{
...
@@ -48,9 +55,9 @@ def call(body) {
...
@@ -48,9 +55,9 @@ def call(body) {
case
"java"
:
case
"java"
:
_stage
.
prepare_java
(
systemName
,
contextDir
)
_stage
.
prepare_java
(
systemName
,
contextDir
)
break
break
case
"ui"
:
/*
case "ui":
_stage.prepare_ui(systemName, contextDir)
_stage.prepare_ui(systemName, contextDir)
break
break
*/
case
"nodejs"
:
case
"nodejs"
:
_stage
.
prepare_nodejs
(
systemName
,
contextDir
)
_stage
.
prepare_nodejs
(
systemName
,
contextDir
)
break
break
...
@@ -72,9 +79,9 @@ def call(body) {
...
@@ -72,9 +79,9 @@ def call(body) {
case
"java"
:
case
"java"
:
_stage
.
build_java
(
namespace
,
originSystemName
,
contextDir
)
_stage
.
build_java
(
namespace
,
originSystemName
,
contextDir
)
break
break
case
"ui"
:
/*
case "ui":
_stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
_stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
break
break
*/
case
"nodejs"
:
case
"nodejs"
:
_stage
.
build_nodejs
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
_stage
.
build_nodejs
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
break
break
...
...
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