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
f9478df7
Commit
f9478df7
authored
Apr 26, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
024cbe02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+33
-33
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
f9478df7
...
@@ -171,44 +171,44 @@ def checkout_luaui(systemName, branchName) {
...
@@ -171,44 +171,44 @@ def checkout_luaui(systemName, branchName) {
gitPath
=
projectAttr
[
"gitPath"
]
gitPath
=
projectAttr
[
"gitPath"
]
//0 if project is simple ui not run npm install
//0 if project is simple ui not run npm install
def
hookfolder
=
new
File
(
"${currentPath}/.git/hooks"
)
def
packejson
=
new
File
(
"${currentPath}/package.json"
)
def
packejson
=
new
File
(
"${currentPath}/package.json"
)
if
(!
packejson
.
exists
()){
if
(!
hookfolder
.
exists
()){
echo
">>>>>>> first checkout project ${systemName}"
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
sh
"mkdir dist"
return
if
(!
packejson
.
exists
()){
}
echo
">>>>>>> is simple ui project"
//0------
sh
"mkdir dist"
return
def
folder
=
new
File
(
"${currentPath}/.git/hooks"
)
}
else
{
echo
">>>>>>> is node ui project"
def
hookExist
=
folder
.
exists
()
def
bowerFile
=
fileExists
'./bower.json'
if
(
hookExist
){
if
(
bowerFile
)
{
sh
"cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
sh
"bower install --allow-root"
sh
"chmod +x .git/hooks/post-checkout"
}
}
sh
"npm install"
}
}
else
{
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
if
(!
packejson
.
exists
()){
echo
">>>>>>> is simple ui project"
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
def
nmfolder
=
new
File
(
"${currentPath}/node_modules"
)
sh
"mkdir dist"
return
/*if (!nmfolder.exists()){
}
else
{
sh "mkdir node_modules"
echo
">>>>>>> is node ui project"
sh "chmod -R 777 node_modules"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
}*/
sh
"chmod +x .git/hooks/post-checkout"
if
(!
hookExist
){
git
branch:
branchName
,
credentialsId:
'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db'
,
url:
gitPath
echo
">>>>>>>>> first git clone"
def
bowerFile
=
fileExists
'./bower.json'
if
(
bowerFile
)
{
sh
"bower install --allow-root"
}
}
sh
"npm install"
}
else
{
}
echo
">>>>>>>>> not first git clone"
}
}
}
def
build
(
buildType
,
systemName
,
contextDir
){
def
build
(
buildType
,
systemName
,
contextDir
){
...
...
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