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
ee225d17
Commit
ee225d17
authored
Apr 09, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffff
parent
2274e561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+5
-4
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
ee225d17
...
@@ -28,6 +28,7 @@ def before_prepare() {
...
@@ -28,6 +28,7 @@ def before_prepare() {
}
}
def
prepare_config
(
buildType
,
systemName
,
contextDir
)
{
def
prepare_config
(
buildType
,
systemName
,
contextDir
)
{
_utils
().
beautyEcho
(
"Prepare Config +++ ${buildType} ${systemName} ${branchName}"
,
"info"
)
switch
(
buildType
)
{
switch
(
buildType
)
{
case
"java"
:
case
"java"
:
prepare_java
(
systemName
,
contextDir
)
prepare_java
(
systemName
,
contextDir
)
...
@@ -61,9 +62,9 @@ def prepare_luaui(systemName, contextDir) {
...
@@ -61,9 +62,9 @@ def prepare_luaui(systemName, contextDir) {
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates_new/lua-ui/* ${contextDir}"
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates_new/lua-ui/* ${contextDir}"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/lua/*.lua ${contextDir}"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/lua/*.lua ${contextDir}"
def
isVhFileExist
=
fileExists
"/home/quant_group/config_repository/lua-ui/nginx/${systemName
s
}.vh.conf"
def
isVhFileExist
=
fileExists
"/home/quant_group/config_repository/lua-ui/nginx/${systemName}.vh.conf"
if
(
isVhFileExist
)
{
if
(
isVhFileExist
)
{
sh
"cp -rf /home/quant_group/config_repository/lua-ui/nginx/${systemName
s
}.vh.conf ${contextDir}"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/nginx/${systemName}.vh.conf ${contextDir}"
}
else
{
}
else
{
sh
"cp -rf /home/quant_group/config_repository/lua-ui/nginx/default.vh.conf ${contextDir}"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/nginx/default.vh.conf ${contextDir}"
}
}
...
@@ -80,7 +81,7 @@ def prepare_python(systemName, contextDir) {
...
@@ -80,7 +81,7 @@ def prepare_python(systemName, contextDir) {
}
}
def
checkout
(
buildType
,
systemName
,
branchName
)
{
def
checkout
(
buildType
,
systemName
,
branchName
)
{
_utils
().
beautyEcho
(
"checkout
${buildType} ${systemName} ${branchName}"
,
"info"
)
_utils
().
beautyEcho
(
"CheckOut +++
${buildType} ${systemName} ${branchName}"
,
"info"
)
switch
(
buildType
){
switch
(
buildType
){
case
"java"
:
case
"java"
:
checkout_java
(
systemName
,
branchName
)
checkout_java
(
systemName
,
branchName
)
...
@@ -346,7 +347,7 @@ def checkAndBuild(buildType,systemName,branchName,contextDir){
...
@@ -346,7 +347,7 @@ def checkAndBuild(buildType,systemName,branchName,contextDir){
docker
.
image
(
pacegeDockerInfo
[
"image"
]).
inside
(
pacegeDockerInfo
[
"args"
]){
docker
.
image
(
pacegeDockerInfo
[
"image"
]).
inside
(
pacegeDockerInfo
[
"args"
]){
/*checkout code*/
/*checkout code*/
_utils
().
beautyEcho
(
"checkout"
,
"info"
)
checkout
(
buildType
,
systemName
,
branchName
)
checkout
(
buildType
,
systemName
,
branchName
)
/*prepare config*/
/*prepare config*/
...
...
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