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
15ee785c
Commit
15ee785c
authored
Dec 28, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
ac920e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
StageBucket.groovy
src/org/qg/docker/StageBucket.groovy
+11
-17
No files found.
src/org/qg/docker/StageBucket.groovy
View file @
15ee785c
...
@@ -21,14 +21,14 @@ def prepare_nodejs(systemName, contextDir) {
...
@@ -21,14 +21,14 @@ def prepare_nodejs(systemName, contextDir) {
sh
"cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config.js"
sh
"cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config.js"
}
}
def
prepare_ui
(
systemName
,
contextDir
)
{
/*
def prepare_ui(systemName, contextDir) {
sh "rm -rf ${contextDir}"
sh "rm -rf ${contextDir}"
sh "cd /home/quant_group/qg-dockerfiles/templates/ui; git pull; cd -"
sh "cd /home/quant_group/qg-dockerfiles/templates/ui; git pull; cd -"
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/ui ${contextDir}"
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/ui ${contextDir}"
sh "cd /home/quant_group/config_repository/java; git pull; cd -"
sh "cd /home/quant_group/config_repository/java; git pull; cd -"
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_luaui
(
systemNames
,
contextDir
)
{
def
prepare_luaui
(
systemNames
,
contextDir
)
{
sh
"rm -rf ${contextDir}"
sh
"rm -rf ${contextDir}"
...
@@ -105,7 +105,7 @@ def jsonParse(def json) {
...
@@ -105,7 +105,7 @@ def jsonParse(def json) {
new
groovy
.
json
.
JsonSlurperClassic
().
parseText
(
json
)
new
groovy
.
json
.
JsonSlurperClassic
().
parseText
(
json
)
}
}
def
build_ui
(
namespace
,
systemName
,
contextDir
,
repoName
,
branchName
,
workspace
)
{
/*
def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace) {
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}"
def res_json = jsonParse(response.content)
def res_json = jsonParse(response.content)
...
@@ -115,28 +115,29 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace)
...
@@ -115,28 +115,29 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace)
buildCmd = res_json["buildCmd"]
buildCmd = res_json["buildCmd"]
configName = systemName
configName = systemName
print "=========================="
print "=========================="
sh "mv -f env.config.js ${configPath}"
sh "mv -f env.config.js ${configPath}"
def bowerFile = fileExists './bower.json'
def bowerFile = fileExists './bower.json'
print "=========env info=========="
print "=========env info=========="
sh
'''#!/bin/bash
sh '''#!/bin/bash
ruby -v
ruby -v
pwd
pwd
ls
ls
'''
'''
if (bowerFile) {
if (bowerFile) {
sh "bower install"
sh "bower install"
}
}
sh "npm install"
sh "npm install"
sh buildCmd
sh buildCmd
sh 'tar zcf dist.tgz dist/'
sh 'tar zcf dist.tgz dist/'
sh "mv dist.tgz ${contextDir}"
sh "mv dist.tgz ${contextDir}"
}
}
*/
def
build_nodejs
(
namespace
,
systemName
,
contextDir
,
repoName
,
branchName
,
workspace
)
{
def
build_nodejs
(
namespace
,
systemName
,
contextDir
,
repoName
,
branchName
,
workspace
)
{
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}"
...
@@ -185,13 +186,6 @@ def build_luaui(namespace, systemNames, contextDir, repoName, branchName, worksp
...
@@ -185,13 +186,6 @@ def build_luaui(namespace, systemNames, contextDir, repoName, branchName, worksp
sh
"mv -f ../${systemName}.env.config.js ${configPath}"
sh
"mv -f ../${systemName}.env.config.js ${configPath}"
def
bowerFile
=
fileExists
'./bower.json'
def
bowerFile
=
fileExists
'./bower.json'
print
"=========env info=========="
sh
'''#!/bin/bash
ruby -v
pwd
ls
'''
if
(
bowerFile
)
{
if
(
bowerFile
)
{
sh
"bower install"
sh
"bower install"
...
...
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