Commit 9ce58d43 by 刘旋尧

webhook测试不合并

parent 31db9a17
...@@ -2,30 +2,6 @@ ...@@ -2,30 +2,6 @@
- name: 先拉取代码 - name: 先拉取代码
git: repo={{ projects[project].repo }} dest={{ projects[project].dir }} accept_hostkey=yes clone=yes update=yes force=yes git: repo={{ projects[project].repo }} dest={{ projects[project].dir }} accept_hostkey=yes clone=yes update=yes force=yes
- name: 更新dev
command: "git pull origin dev"
args:
chdir: "{{ projects[project].dir }}"
when: type == "test"
- name: 切换到master
command: "git checkout master"
args:
chdir: "{{ projects[project].dir }}"
when: type == "test"
- name: 合并dev
command: "git merge dev"
args:
chdir: "{{ projects[project].dir }}"
when: type == "test"
- name: 推送到master
command: "git push origin master"
args:
chdir: "{{ projects[project].dir }}"
when: type == "test"
- name: 更新到指定版本 - name: 更新到指定版本
command: "git checkout {{ commit }}" command: "git checkout {{ commit }}"
......
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