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
23d5da25
Commit
23d5da25
authored
Dec 27, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua-ui
parent
1bd1bfe1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
StageBucket.groovy
src/org/qg/docker/StageBucket.groovy
+6
-6
qgDockerPipeline.groovy
vars/qgDockerPipeline.groovy
+2
-2
No files found.
src/org/qg/docker/StageBucket.groovy
View file @
23d5da25
...
@@ -30,15 +30,15 @@ def prepare_ui(systemName, contextDir) {
...
@@ -30,15 +30,15 @@ def prepare_ui(systemName, contextDir) {
sh
"cp -rf /home/quant_group/config_repository/ui/${systemName}.js env.config.js"
sh
"cp -rf /home/quant_group/config_repository/ui/${systemName}.js env.config.js"
}
}
def
prepare_
openresty
(
systemNames
,
contextDir
)
{
def
prepare_
luaui
(
systemNames
,
contextDir
)
{
sh
"rm -rf ${contextDir}"
sh
"rm -rf ${contextDir}"
sh
"cd /home/quant_group/qg-dockerfiles/templates/
openresty
; git pull; cd -"
sh
"cd /home/quant_group/qg-dockerfiles/templates/
lua-ui
; git pull; cd -"
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates/
openresty
${contextDir}"
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates/
lua-ui
${contextDir}"
sh
"cd /home/quant_group/config_repository/
openresty
; git pull; cd -"
sh
"cd /home/quant_group/config_repository/
lua-ui
; git pull; cd -"
arrSystem
=
systemNames
.
spit
(
"--"
)
arrSystem
=
systemNames
.
spit
(
"--"
)
for
(
systemName
in
arrSystem
)
{
for
(
systemName
in
arrSystem
)
{
sh
"cp -rf /home/quant_group/config_repository/
openresty
/${systemName}.js ${systemName}.env.config.js"
sh
"cp -rf /home/quant_group/config_repository/
lua-ui/config
/${systemName}.js ${systemName}.env.config.js"
}
}
}
}
...
@@ -146,7 +146,7 @@ def build_python(namespace, systemName, contextDir) {
...
@@ -146,7 +146,7 @@ def build_python(namespace, systemName, contextDir) {
sh
"mv dist.tgz ${contextDir}"
sh
"mv dist.tgz ${contextDir}"
}
}
def
build_
openresty
(
namespace
,
systemNames
,
contextDir
,
repoName
,
branchName
,
workspace
)
{
def
build_
luaui
(
namespace
,
systemNames
,
contextDir
,
repoName
,
branchName
,
workspace
)
{
arrSystem
=
systemNames
.
spit
(
"--"
)
arrSystem
=
systemNames
.
spit
(
"--"
)
for
(
systemName
in
arrSystem
)
{
for
(
systemName
in
arrSystem
)
{
response
=
httpRequest
"http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
response
=
httpRequest
"http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
...
...
vars/qgDockerPipeline.groovy
View file @
23d5da25
...
@@ -58,7 +58,7 @@ def call(body) {
...
@@ -58,7 +58,7 @@ def call(body) {
_stage
.
prepare_python
(
contextDir
)
_stage
.
prepare_python
(
contextDir
)
break
break
case
"openresty"
:
case
"openresty"
:
_stage
.
prepare_
openresty
(
contextDir
)
_stage
.
prepare_
luaui
(
contextDir
)
break
break
default:
default:
echo
"未知的buildType: ${config.buildType}"
echo
"未知的buildType: ${config.buildType}"
...
@@ -82,7 +82,7 @@ def call(body) {
...
@@ -82,7 +82,7 @@ def call(body) {
_stage
.
build_python
(
namespace
,
originSystemName
,
contextDir
)
_stage
.
build_python
(
namespace
,
originSystemName
,
contextDir
)
break
break
case
"openresty"
:
case
"openresty"
:
_stage
.
build_
openresty
(
namespace
,
originSystemName
,
contextDir
)
_stage
.
build_
luaui
(
namespace
,
originSystemName
,
contextDir
)
break
break
default:
default:
echo
"未知的buildType: ${config.buildType}"
echo
"未知的buildType: ${config.buildType}"
...
...
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