summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Tabacel <Tudor.Tabacel-Manea@bmw-carit.de>2018-11-09 14:20:17 +0100
committerTobias Henkel <tobias.henkel@bmw.de>2018-11-09 15:00:28 +0100
commit34cfe44ca5c63c354339aa502052d9054a36bf60 (patch)
treed04c584721eecec70c2d061fefe6ca64367cc327
parent7cee7156bcde8bc396ac4b6581bf2cae02eea0e9 (diff)
mirror-workspace-git: use port when pushing git repo through ssh
In the case of using a custom SSH port to connect to the ansible host, the task of pushing the repository failed, as it assumed the SSH port to be the default 22. Now the command is aware of the custom SSH port, as it is specified in the host facts. Change-Id: I3418016ad5a57e3024a8a553340a7e69b7d1c2fe
Notes
Notes (review): Code-Review+2: Monty Taylor <mordred@inaugust.com> Code-Review+1: melissaml <ma.lei@99cloud.net> Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Workflow+1: Clark Boylan <cboylan@sapwetik.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 19 Nov 2018 19:48:05 +0000 Reviewed-on: https://review.openstack.org/616941 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/mirror-workspace-git-repos/tasks/main.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/mirror-workspace-git-repos/tasks/main.yaml b/roles/mirror-workspace-git-repos/tasks/main.yaml
index 2c9f191..1916124 100644
--- a/roles/mirror-workspace-git-repos/tasks/main.yaml
+++ b/roles/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 }}:{{ 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 }}"