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
77f07bc3
Commit
77f07bc3
authored
May 10, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c19a6677
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+13
-11
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
77f07bc3
...
@@ -82,13 +82,15 @@ def prepare_java(systemName, contextDir) {
...
@@ -82,13 +82,15 @@ def prepare_java(systemName, contextDir) {
def
prepare_nodejs
(
systemName
,
contextDir
)
{
def
prepare_nodejs
(
systemName
,
contextDir
)
{
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates/nodejs/* ${contextDir}"
sh
"cp -rf /home/quant_group/qg-dockerfiles/templates/nodejs/* ${contextDir}"
sh
"cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/npmrc/common-npmrc /root/.npmrc"
}
}
def
prepare_luaui
(
systemName
,
contextDir
)
{
def
prepare_luaui
(
systemName
,
contextDir
)
{
sh
"cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/npmrc/common-npmrc /root/.npmrc"
}
}
...
@@ -144,13 +146,14 @@ def checkout_python(systemName, branchName) {
...
@@ -144,13 +146,14 @@ def checkout_python(systemName, branchName) {
def
checkout_nodejs
(
systemName
,
branchName
)
{
def
checkout_nodejs
(
systemName
,
branchName
)
{
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
def
specialNpmrc
=
new
File
(
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
)
def
specialNpmrc
=
new
File
(
npmrcPath
)
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if
(
specialNpmrc
.
exists
()){
if
(
specialNpmrc
.
exists
()){
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
sh
"cp -rf ${npmrcPath} .npmrc"
}
}
sh
"cp -rf ${npmrcPath} .npmrc"
def
projectAttr
=
project_attr
(
systemName
)
def
projectAttr
=
project_attr
(
systemName
)
...
@@ -182,13 +185,12 @@ def checkout_luaui(systemName, branchName) {
...
@@ -182,13 +185,12 @@ def checkout_luaui(systemName, branchName) {
echo
"- ${currentPath} -"
echo
"- ${currentPath} -"
sh
"whoami"
sh
"whoami"
echo
"----------------------------"
echo
"----------------------------"
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
def
specialNpmrc
=
new
File
(
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
)
def
specialNpmrc
=
new
File
(
npmrcPath
)
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if
(
specialNpmrc
.
exists
()){
if
(
specialNpmrc
.
exists
()){
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
sh
"cp -rf ${npmrcPath} .npmrc"
}
}
sh
"cp -rf ${npmrcPath} .npmrc"
_utils
().
beautyEcho
(
"ui project : ${systemName}"
,
"info"
)
_utils
().
beautyEcho
(
"ui project : ${systemName}"
,
"info"
)
...
...
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