Commit 4e07136b authored by tong.li's avatar tong.li

deploy

parent ca0162c6
...@@ -37,7 +37,7 @@ def call(body) { ...@@ -37,7 +37,7 @@ def call(body) {
int_count = (count / 2).toInteger() int_count = (count / 2).toInteger()
machines_list = _utils.partList(arr_machines.toList(), int_count, count) machines_list = _utils.partList(arr_machines.toList(), int_count, count)
c = 1 c = 0
for (machine in machines_list) { for (machine in machines_list) {
echo "Is deploy to :" + machine echo "Is deploy to :" + machine
sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv" sh "ansible-playbook /etc/ansible/${action}.yml -e project_name=${envType}.${projectName} -e data_center=${dataCenter} -e machines=${machine[0]} -e force=${force} -vv"
......
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