From e60a6bc2b010f68ace891991e872803ced7d742d Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Thu, 26 Apr 2018 11:23:41 +0200 Subject: [PATCH] Properly export zuul variables The JOB_NAME variable is being exported as 'workspace' and LOT_PATH isn't being exported at all, and these variables are required for tempest-sendmail tool work properly Change-Id: Iaa5a85e8d15e0ea9ff9d53dd60bbd08a400d71b5 --- playbooks/tripleo-ci/run.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/tripleo-ci/run.yaml b/playbooks/tripleo-ci/run.yaml index a80a8261b..8b30bb409 100644 --- a/playbooks/tripleo-ci/run.yaml +++ b/playbooks/tripleo-ci/run.yaml @@ -35,6 +35,10 @@ export ZUUL_BRANCH=${ZUUL_BRANCH:-master} export ZUUL_REF=${ZUUL_REF:-None} + # Compatibility with zuul v3 variables + export JOB_NAME={{ zuul.job }} + export LOG_PATH={{ zuul.change[-2:] }}/{{ zuul.change }}/{{ zuul.patchset }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.build[:7] }} + export BRANCH_OVERRIDE="{{ branch_override | default('default') }}" if [ "$BRANCH_OVERRIDE" != "default" ] ; then export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE