From 2aff9bc324014464665575786e956dd2a6ce20fc Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 2 Oct 2017 16:34:36 -0500 Subject: [PATCH] Print environment in pre playbook of legacy-base job We construct an environment for legacy purposes. Let's print it for help debugging things. Change-Id: I042e481ebe541d7cbc69a29d4e38b3779d48a936 --- playbooks/legacy/pre.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/legacy/pre.yaml b/playbooks/legacy/pre.yaml index b2b6d3d7..490dcb3c 100644 --- a/playbooks/legacy/pre.yaml +++ b/playbooks/legacy/pre.yaml @@ -56,3 +56,10 @@ regexp: '^ sudo .script_path/jenkins-sudo-grep.sh post' line: ' sudo $script_path/zuul-sudo-grep.sh post' become: true + + - name: Show the environment passed in to job shell scripts + shell: + cmd: | + env + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}'