From e38bcb4c12775ac7837333bf62aede32f333e99d Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 14 Sep 2018 07:40:30 -0700 Subject: [PATCH] Configure git user details for kata The kata test jobs apply patches to git repos with git. This creates commits which requires you have a user configured in git. Set up a global git config with generic Zuul identify info in it to address this. More details at https://github.com/kata-containers/ci/issues/65 Change-Id: I08a6a13501fad92cd290f0a9e5559f61b11d7fab --- roles/kata-setup/tasks/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/kata-setup/tasks/main.yaml b/roles/kata-setup/tasks/main.yaml index 77d2a159..450748f6 100644 --- a/roles/kata-setup/tasks/main.yaml +++ b/roles/kata-setup/tasks/main.yaml @@ -18,6 +18,13 @@ jump: ACCEPT become: yes +- name: Configure git user for kata patch application + shell: | + git config --global user.email "zuul@test.machine" + git config --global user.name "Zuul CI" + tags: + - skip_ansible_lint + - name: Run kata setup.sh args: executable: /bin/bash