Merge "Properly export zuul variables"
This commit is contained in:
commit
ccd6fe62a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue