diff options
Diffstat (limited to 'vagrant/ansible/roles')
-rw-r--r-- | vagrant/ansible/roles/client.test.prep/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vagrant/ansible/roles/client.test.prep/tasks/main.yml b/vagrant/ansible/roles/client.test.prep/tasks/main.yml index 3e95c97..98abe1d 100644 --- a/vagrant/ansible/roles/client.test.prep/tasks/main.yml +++ b/vagrant/ansible/roles/client.test.prep/tasks/main.yml @@ -1,4 +1,21 @@ --- +- block: + - name: Fetch repo/switch to master branch + git: + repo: "{{ test_repo }}" + version: "master" + dest: /root/samba-integration-tests + + - name: Fetching PR + git: + repo: "{{ test_repo }}" + refspec: +pull/{{ test_repo_pr }}/head:pr{{ test_repo_pr }} + dest: /root/samba-integration-tests + + - set_fact: + test_repo_branch: "pr{{ test_repo_pr }}" + when: test_repo_pr is defined + - debug: msg: "Preparing to checkout from test repo: {{ test_repo }}, branch {{test_repo_branch}}" |