Commit 1574aef3 authored by daidekun's avatar daidekun

f

parent ca690119
......@@ -163,35 +163,35 @@ def build_python(namespace, systemName, contextDir) {
def build_luaui(namespace, systemNames, contextDir, repoName, branchName, workspace) {
arrSystem = systemNames.split("--")
for (systemName in arrSystem) {
sh "cd ${systemName}"
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
dir (systemName) {
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
def res_json = jsonParse(response.content)
print "=====Build Command Is====="
echo res_json.toString()
configPath = res_json["configPath"]
buildCmd = res_json["buildCmd"]
configName = systemName
print "=========================="
def res_json = jsonParse(response.content)
print "=====Build Command Is====="
echo res_json.toString()
configPath = res_json["configPath"]
buildCmd = res_json["buildCmd"]
configName = systemName
print "=========================="
sh "mv -f ${systemName}.env.config.js ${systemName}/${configPath}"
sh "mv -f ${systemName}.env.config.js ${systemName}/${configPath}"
def bowerFile = fileExists './bower.json'
def bowerFile = fileExists './bower.json'
print "=========env info=========="
sh '''#!/bin/bash
ruby -v
pwd
ls
'''
print "=========env info=========="
sh '''#!/bin/bash
ruby -v
pwd
ls
'''
if (bowerFile) {
sh "bower install"
if (bowerFile) {
sh "bower install"
}
sh buildCmd
sh 'tar zcf ${systemName}.dist.tgz dist/'
sh "mv ${systemName}.dist.tgz ../${contextDir}"
}
sh buildCmd
sh 'tar zcf ${systemName}.dist.tgz dist/'
sh "mv ${systemName}.dist.tgz ../${contextDir}"
sh "cd .."
}
}
......
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