Commit 4b596876 by Clinton Blackburn Committed by George Song

Performing shallow clone of Git repos

This should help decrease build times.

ECOM-6600

Cherry pick from 64facf1b
parent 71825ed8
......@@ -61,6 +61,7 @@
version: "{{ item.VERSION }}"
accept_hostkey: yes
key_file: "{{ git_home }}/.ssh/{{ item.REPO }}"
depth: 1
become_user: "{{ repo_owner }}"
register: code_checkout
when: item.PROTOCOL == "ssh" and GIT_REPOS is defined
......@@ -75,6 +76,7 @@
repo: "https://{{ item.DOMAIN }}/{{ item.PATH }}/{{ item.REPO }}"
dest: "{{ item.DESTINATION }}"
version: "{{ item.VERSION }}"
depth: 1
become_user: "{{ repo_owner }}"
register: code_checkout
when: item.PROTOCOL == "https" and GIT_REPOS is defined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment