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
62b1ac7b
Commit
62b1ac7b
authored
Nov 19, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拷贝node_modules
parent
44f053c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
StageBucket.groovy
src/org/qg/StageBucket.groovy
+3
-15
No files found.
src/org/qg/StageBucket.groovy
View file @
62b1ac7b
...
@@ -66,29 +66,17 @@ def jsonParse(def json) {
...
@@ -66,29 +66,17 @@ def jsonParse(def json) {
def
build_nodejs_and_ui
(
namespace
,
systemName
,
contextDir
,
repoName
,
branchName
)
{
def
build_nodejs_and_ui
(
namespace
,
systemName
,
contextDir
,
repoName
,
branchName
)
{
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 jsonSlurper = new JsonSlurper()
def
res_json
=
jsonParse
(
response
.
content
)
def
res_json
=
jsonParse
(
response
.
content
)
//def res_json = jsonSlurper.parseText(response.content)
print
"=====Build Command Is====="
print
"=====Build Command Is====="
configPath
=
res_json
[
"configPath"
]
configPath
=
res_json
[
"configPath"
]
buildCmd
=
res_json
[
"buildCmd"
]
buildCmd
=
res_json
[
"buildCmd"
]
configName
=
systemName
configName
=
systemName
print
"=========================="
print
"=========================="
sh
"pwd"
sh
"cp -rf /home/quant_group/jenkins_home/workspace/pre.${system_name}/node_modules/ node_modules"
sh
"ls -l"
print
"mv -f env.config.js ${configPath}"
sh
"mv -f env.config.js ${configPath}"
sh
"mv -f env.config.js ${configPath}"
print
buildCmd
sh
buildCmd
sh
buildCmd
print
'tar zcf dist.tgz dist/'
sh
'tar zcf dist.tgz dist/'
sh
'tar zcf dist.tgz dist/'
print
"mv dist.tgz ./${contextDir}"
sh
"mv dist.tgz ./${contextDir}"
sh
"mv dist.tgz ./${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