From 37fce96531b64d920290ce7eb2dcb512c7544c7f Mon Sep 17 00:00:00 2001 From: Iury Gregory Melo Ferreira Date: Tue, 5 Mar 2019 14:02:12 +0100 Subject: [PATCH] Replace ZUUL_REFNAME for zuul.branch Replace `ZUUL_REFNAME` in favor of `zuul.branch` to get the correct branch name when building images. Change-Id: I6fe33b2f17c742d57d19985169cd9800007b5768 --- playbooks/ironic-python-agent-buildimage/run.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playbooks/ironic-python-agent-buildimage/run.yaml b/playbooks/ironic-python-agent-buildimage/run.yaml index 53a611862..ac7ef0f9e 100644 --- a/playbooks/ironic-python-agent-buildimage/run.yaml +++ b/playbooks/ironic-python-agent-buildimage/run.yaml @@ -4,9 +4,8 @@ cmd: | set -e set -x - BRANCH=$ZUUL_REFNAME - # After migration to zuulv3 BRANCH now looks like refs/heads/master - export BRANCH_PATH=`echo $BRANCH | sed -e "s/refs\/heads\///" | tr / -` + BRANCH={{ zuul.branch }} + export BRANCH_PATH=`echo $BRANCH | tr / -` mkdir UPLOAD_RAW mkdir UPLOAD_TAR