Commit 62b1ac7b authored by daidekun's avatar daidekun

拷贝node_modules

parent 44f053c5
...@@ -65,30 +65,18 @@ def jsonParse(def json) { ...@@ -65,30 +65,18 @@ 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
sh 'tar zcf dist.tgz dist/'
print '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}"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment