Commit b7358792 authored by daidekun's avatar daidekun

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

parent 75fcc7f8
...@@ -96,6 +96,11 @@ def build_nodejs(namespace, systemName, contextDir, repoName, branchName, worksp ...@@ -96,6 +96,11 @@ def build_nodejs(namespace, systemName, contextDir, repoName, branchName, worksp
buildCmd = res_json["buildCmd"] buildCmd = res_json["buildCmd"]
configName = systemName configName = systemName
print "==========================" 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 "cp -rf /home/quant_group/jenkins_home/workspace/pre.${systemName}/node_modules/ node_modules"
sh "mv -f env.config.js ${configPath}" 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