From 614b37621bdd5c408d06ce57360dbbea61476e2f Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Sat, 29 Aug 2015 18:30:31 +0100 Subject: [PATCH] Disable python buffering for gate checks In order to ensure that the ansible output in the jenkins console log is output as it comes it is necessary to turn off the python output buffering. Change-Id: I0f8f11cd04fdfd6c26d5a5afc0e8647648edb1bb --- scripts/gate-check-commit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index 46e82d07cf..b0e214e692 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -68,6 +68,9 @@ fi # Enable debug logging for all services to make failure debugging easier echo "debug: True" | tee -a /etc/openstack_deploy/user_variables.yml +# Disable the python output buffering so that jenkins gets the output properly +export PYTHONUNBUFFERED=1 + # Run the ansible playbooks if required if [ "${RUN_PLAYBOOKS}" == "yes" ]; then # Set-up our tiny awk script.