Browse Source

Merge "Update test-mirror-workspace-git-repos, add test"

changes/02/626002/1
Zuul 6 months ago
parent
commit
01662e22bd
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      roles/test-mirror-workspace-git-repos/tasks/main.yaml

+ 4
- 1
roles/test-mirror-workspace-git-repos/tasks/main.yaml View File

@@ -7,7 +7,7 @@
7 7
   with_dict: "{{ zuul.projects }}"
8 8
 
9 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 11
   args:
12 12
     chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
13 13
   with_dict: "{{ zuul.projects }}"
@@ -33,6 +33,9 @@
33 33
     git config --local --unset receive.denyCurrentBranch
34 34
     # checkout the branch matching the branch set up by the executor
35 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 39
   args:
37 40
     chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
38 41
   with_dict: "{{ zuul.projects }}"

Loading…
Cancel
Save