summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/test-mirror-workspace-git-repos/tasks/main.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/test-mirror-workspace-git-repos/tasks/main.yaml b/roles/test-mirror-workspace-git-repos/tasks/main.yaml
index 2c9f191..3cd81bf 100644
--- a/roles/test-mirror-workspace-git-repos/tasks/main.yaml
+++ b/roles/test-mirror-workspace-git-repos/tasks/main.yaml
@@ -7,7 +7,7 @@
7 with_dict: "{{ zuul.projects }}" 7 with_dict: "{{ zuul.projects }}"
8 8
9- name: Synchronize src repos to workspace directory 9- name: Synchronize src repos to workspace directory
10 command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}" 10 command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host | ipwrap }}:{{ ansible_port }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
11 args: 11 args:
12 chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}" 12 chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
13 with_dict: "{{ zuul.projects }}" 13 with_dict: "{{ zuul.projects }}"
@@ -33,6 +33,9 @@
33 git config --local --unset receive.denyCurrentBranch 33 git config --local --unset receive.denyCurrentBranch
34 # checkout the branch matching the branch set up by the executor 34 # checkout the branch matching the branch set up by the executor
35 git checkout {{ item.value.checkout }} 35 git checkout {{ item.value.checkout }}
36 # put out a status line with the current HEAD
37 echo "{{ item.value.canonical_name }} checked out to:"
38 git log --pretty=oneline -1
36 args: 39 args:
37 chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}" 40 chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
38 with_dict: "{{ zuul.projects }}" 41 with_dict: "{{ zuul.projects }}"