[publisher] Implement custom repo path

Use CUSTOM_REPO_ID variable to override default path for CR
   repositories

Change-Id: I222be69d28a2c1c43a1ef1e063696bf25ad15c10
Closes-Bug: #1511757
This commit is contained in:
Dmitry Burmistrov 2016-03-09 19:50:45 +03:00
parent 4af7fc2e9c
commit 36fd222432
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@ main() {
# Create all repositories
# Paths
if [ -n "${CUSTOM_REPO_ID}" ] ; then
unset LP_BUG
REQUEST_NUM=${CUSTOM_REPO_ID}
fi
local URL_PREFIX=""
if [ "${GERRIT_CHANGE_STATUS}" = "NEW" ] ; then
REPO_BASE_PATH=${REPO_BASE_PATH}/${REPO_REQUEST_PATH_PREFIX}

View File

@ -23,6 +23,10 @@ main() {
[ $(ls -1 ${TMP_DIR}/ | wc -l) -eq 0 ] && error "Can't download packages"
## Prepare repository
if [ -n "${CUSTOM_REPO_ID}" ] ; then
unset LP_BUG
REQUEST_NUM=${CUSTOM_REPO_ID}
fi
local URL_PREFIX=''
if [ "${GERRIT_CHANGE_STATUS}" == "NEW" ] ; then
REPO_BASE_PATH=${REPO_BASE_PATH}/${REPO_REQUEST_PATH_PREFIX}