Browse Source

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

This updates the test-mirror-workspace-git-repos to be the same as
mirror-workspace-git-repos, and adds the change proposed in
I84d9a8a460e99d3bc558b3a7584d787b22f2ed33 for testing.

Change-Id: If0792190c75c7716e94f1f5ae0f2d4fc37e0b306
changes/75/624575/1
Ian Wienand 6 months ago
parent
commit
a8f1afb5ed
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