Commit e51511fc by Saleem Latif

Revert "Revert "SOL-2037: Make sure ssh private keys are not leaked into the jenkins job logs""

This reverts commit 22a3d1c4.
parent 818388c0
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
shell: git config --global fetch.prune true shell: git config --global fetch.prune true
become_user: "{{ repo_owner }}" become_user: "{{ repo_owner }}"
when: GIT_REPOS is defined when: GIT_REPOS is defined
no_log: true
tags: tags:
- install - install
- install:code - install:code
...@@ -33,6 +34,7 @@ ...@@ -33,6 +34,7 @@
msg: '{{ GIT_REPOS.PROTOCOL }} must be "https" or "ssh"' msg: '{{ GIT_REPOS.PROTOCOL }} must be "https" or "ssh"'
when: (item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and GIT_REPOS is defined when: (item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and GIT_REPOS is defined
with_items: GIT_REPOS with_items: GIT_REPOS
no_log: true
tags: tags:
- install - install
- install:code - install:code
...@@ -47,6 +49,7 @@ ...@@ -47,6 +49,7 @@
mode: "0600" mode: "0600"
when: item.PROTOCOL == "ssh" and GIT_REPOS is defined when: item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items: GIT_REPOS with_items: GIT_REPOS
no_log: true
tags: tags:
- install - install
- install:code - install:code
...@@ -62,6 +65,7 @@ ...@@ -62,6 +65,7 @@
register: code_checkout register: code_checkout
when: item.PROTOCOL == "ssh" and GIT_REPOS is defined when: item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items: GIT_REPOS with_items: GIT_REPOS
no_log: true
tags: tags:
- install - install
- install:code - install:code
...@@ -75,6 +79,7 @@ ...@@ -75,6 +79,7 @@
register: code_checkout register: code_checkout
when: item.PROTOCOL == "https" and GIT_REPOS is defined when: item.PROTOCOL == "https" and GIT_REPOS is defined
with_items: GIT_REPOS with_items: GIT_REPOS
no_log: true
tags: tags:
- install - install
- install:code - install:code
...@@ -85,6 +90,7 @@ ...@@ -85,6 +90,7 @@
state: absent state: absent
when: item.PROTOCOL == "ssh" and GIT_REPOS is defined when: item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items: GIT_REPOS with_items: GIT_REPOS
no_log: true
tags: tags:
- install - install
- install:code - install:code
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