Merge "Allow BRANCH instead of ZUUL_REF in ggp"
This commit is contained in:
commit
fa8c0d1a87
@ -24,8 +24,16 @@ fi
|
|||||||
|
|
||||||
if [ -z "$ZUUL_REF" ]
|
if [ -z "$ZUUL_REF" ]
|
||||||
then
|
then
|
||||||
echo "This job may only be triggered by Zuul."
|
if [ -n "$BRANCH" ]
|
||||||
exit 1
|
then
|
||||||
|
echo "No ZUUL_REF so using requested branch $BRANCH from origin."
|
||||||
|
ZUUL_REF=$BRANCH
|
||||||
|
# use the origin since zuul mergers have outdated branches
|
||||||
|
ZUUL_URL=$GIT_ORIGIN
|
||||||
|
else
|
||||||
|
echo "Provide either ZUUL_REF or BRANCH in the calling enviromnent."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$ZUUL_CHANGE" ]
|
if [ ! -z "$ZUUL_CHANGE" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user