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
This commit is contained in:
Arx Cruz 2018-04-26 11:23:41 +02:00
parent 11f888e0e1
commit e60a6bc2b0
1 changed files with 4 additions and 0 deletions

View File

@ -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