[builder] Implement custom repo path

Use CUSTOM_REPO_ID variable to override default path for CR
   repositories (missed builder part)

Change-Id: Ia1acd83afcec456b5bec25dc6300daecc20c728c
Related-Bug: #1511757
This commit is contained in:
Dmitry Burmistrov 2016-05-30 21:00:45 +03:00
parent d22cdcd2e2
commit 24236dc070
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ set_default_params () {
local _LP_BUG=`echo "$GERRIT_TOPIC" | egrep -o "group/[0-9]+" | cut -d'/' -f2`
#[ -z "$_LP_BUG" ] && _LP_BUG=`echo "$GERRIT_MEGGASE" | egrep -i -o "(closes|partial|related)-bug: ?#?[0-9]+" | sort -u | head -1 | awk -F'[: #]' '{print $NF}'`
[ -n "$_LP_BUG" ] && LP_BUG="LP-$_LP_BUG"
if [ -n "${CUSTOM_REPO_ID}" ] ; then
unset LP_BUG
REQUEST_NUM=${CUSTOM_REPO_ID}
fi
else
if [ -n "$GERRIT_MESSAGE" ] ; then
if [ `echo $GERRIT_MESSAGE | grep -c \"$SECUPDATETAG\"` -gt 0 ] ; then