Commit eb6ce843 authored by daidekun's avatar daidekun

s

parent 46210140
...@@ -26,10 +26,22 @@ def call(body) { ...@@ -26,10 +26,22 @@ def call(body) {
stage('Build') { stage('Build') {
echo config.envType echo config.envType
sh "ansible-playbook /etc/ansible/build.yml -e project_name=${config.envType}.${projectName} -e repo_name=${repoName} -e branch_name=${branchName}" sh "ansible-playbook /etc/ansible/build.yml -e project_name=${config.envType}.${projectName} -e repo_name=${repoName} -e branch_name=${branchName} -vv"
} }
stage('Deploy') { stage('Deploy') {
/*摘服务,看日志*/
sh "ansible-playbook /etc/ansible/nginx_remove.yml -e project_name=${project_name} -e room=${room} -e room_hosts=${hosts} -vv"
/*判断*/
/*yes*/
sh "ansible-playbook /etc/ansible/deploy.yml -e project_name=${project_name} -e room=${room} -e room_hosts=${hosts} -vv"
/*no*/
/* ansible-playbook /etc/ansible/nginx_add.yml -e project_name=${project_name} -e room=${room} -e room_hosts=${hosts} -vv*/
echo "deploy" echo "deploy"
} }
} }
......
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