Commit 8c57230a authored by daidekun's avatar daidekun

增加 env info

parent e0c74ddf
...@@ -85,6 +85,18 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace) ...@@ -85,6 +85,18 @@ def build_ui(namespace, systemName, contextDir, repoName, branchName, workspace)
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
print "=========env info=========="
sh '''#!/bin/bash
ruby -v
pwd
ls
'''
if (bowerFile) {
sh "npm install --save node-sass grunt-sass"
sh "bower install"
}
if (bowerFile) { if (bowerFile) {
sh "bower install" sh "bower install"
} }
...@@ -106,20 +118,10 @@ def build_nodejs(namespace, systemName, contextDir, repoName, branchName, worksp ...@@ -106,20 +118,10 @@ def build_nodejs(namespace, systemName, contextDir, repoName, branchName, worksp
print "==========================" print "=========================="
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
print "=========env info=========="
sh '''#!/bin/bash
ruby -v
pwd
ls
'''
if (bowerFile) { if (bowerFile) {
sh "npm install --save node-sass grunt-sass"
sh "bower install" 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