contrib/rh-bkr: support special ARCH "<random>" in jenkins script

This commit is contained in:
Thomas Haller 2015-11-13 13:38:49 +01:00
parent 4b6f93bf8a
commit 91762c38b1

View file

@ -56,6 +56,11 @@ else
GIT_TARGETBRANCH=()
fi
if [ "$ARCH" == "<random>" ]; then
ARCH=(x86_64 ppc64 ppc64le s390x aarch64)
ARCH=${ARCH[$(($RANDOM % ${#ARCH[@]}))]}
fi
export WHITEBOARD="$BUILD_URL"
python -u \