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
7137f524
Commit
7137f524
authored
May 09, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e9a2e128
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+16
-8
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
7137f524
...
...
@@ -83,10 +83,24 @@ def prepare_java(systemName, contextDir) {
def
prepare_nodejs
(
systemName
,
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"
def
specialNpmrc
=
new
File
(
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
)
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if
(
specialNpmrc
.
exists
()){
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh
"cp -rf ${npmrcPath} .npmrc"
}
def
prepare_luaui
(
systemName
,
contextDir
)
{
sh
"cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config"
def
specialNpmrc
=
new
File
(
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
)
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if
(
specialNpmrc
.
exists
()){
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh
"cp -rf ${npmrcPath} .npmrc"
}
def
prepare_python
(
systemName
,
contextDir
)
{
...
...
@@ -171,12 +185,6 @@ def checkout_luaui(systemName, branchName) {
sh
"whoami"
echo
"----------------------------"
def
specialNpmrc
=
new
File
(
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
)
def
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if
(
specialNpmrc
.
exists
()){
npmrcPath
=
"/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
_utils
().
beautyEcho
(
"ui project : ${systemName}"
,
"info"
)
...
...
@@ -193,7 +201,7 @@ def checkout_luaui(systemName, branchName) {
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
sh
"cp -rf ${npmrcPath} ${currentPath}/.npmrc"
def
bowerResult
=
ext_bower_install
()
def
npmResult
=
ext_npm_intall
()
def
resultNum
=
bowerResult
+
npmResult
...
...
@@ -212,7 +220,7 @@ def checkout_luaui(systemName, branchName) {
}
}
else
{
sh
"cp -rf ${npmrcPath} ${currentPath}/.npmrc"
if
(!
packejson
.
exists
()){
echo
">>>>>>> is simple ui project"
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
...
...
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