summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-18 07:26:29 +0000
committerGerrit Code Review <review@openstack.org>2018-12-18 07:26:29 +0000
commit01662e22bd4a14644739e3b61ee718a2472ea4c9 (patch)
tree6e71fcd0d465c62da06d4c929f81c80a7b3a5b5d
parentb43e406edd3018560327f8682f2ea1539820b634 (diff)
parenta8f1afb5edb74dd668ca091c84ff3c68ee337182 (diff)
Merge "Update test-mirror-workspace-git-repos, add test"
-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 }}"