[publisher] Implement custom repo path
Use CUSTOM_REPO_ID variable to override default path for CR
repositories
Partial-Bug: #1575171
Change-Id: I222be69d28a2c1c43a1ef1e063696bf25ad15c10
Closes-Bug: #1511757
(cherry picked from commit 36fd222432
)
This commit is contained in:
parent
fb45b80d7b
commit
33f71a0e94
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue