Commit b7358792 authored by daidekun's avatar daidekun

如果存在def bowerFile = fileExists './bower.json'

parent 75fcc7f8
......@@ -89,14 +89,19 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace)
def build_nodejs(namespace, systemName, contextDir, repoName, branchName, workspace) {
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
def res_json = jsonParse(response.content)
print "=====Build Command Is====="
configPath = res_json["configPath"]
buildCmd = res_json["buildCmd"]
configName = systemName
print "=========================="
def bowerFile = fileExists './bower.json'
if (bowerFile) {
sh "bower install"
}
sh "cp -rf /home/quant_group/jenkins_home/workspace/pre.${systemName}/node_modules/ node_modules"
sh "mv -f env.config.js ${configPath}"
......
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