Verified Commit 6b6e3eb6 authored by Varac's avatar Varac

Pass $CODENAME to incoming-dockerbuild

parent c172e851
Pipeline #6225 passed with stage
in 9 minutes and 7 seconds
......@@ -59,7 +59,7 @@ done
# Include uploaded .debs into one or more repositories
for repo in $(echo "$REPONAMES" | tr ',' ' ')
do
on_repo_target /bin/bash -x "/usr/local/bin/incoming-dockerbuild ${MYTMP} ${REPOBASEDIR}/${repo} ${DIST}"
on_repo_target /bin/bash -x "/usr/local/bin/incoming-dockerbuild ${MYTMP} ${REPOBASEDIR}/${repo} ${CODENAME} ${DIST}"
done
# Cleanup remote temporary directory
......
......@@ -2,7 +2,7 @@
# Usage:
#
# incoming_dockerbuild <INCOMINGDIR> <REPOSITORY> <COMPONENT>
# incoming_dockerbuild <INCOMINGDIR> <REPOSITORY> <CODENAME> <COMPONENT>
set -e
......@@ -10,16 +10,14 @@ set -e
# to /usr/local/sbin/build-lib on the on the repohost
. /usr/local/sbin/build-lib
# shellcheck disable=SC1090
. "${HOME}"/custom-vars
# Source custom config file if present
# shellcheck source=/dev/null
[ -e "$HOME/.gitlab-buildpackagerc" ] && source "$HOME/.gitlab-buildpackagerc"
INCOMINGDIR="$1"
export REPOSITORY="$2"
export COMPONENT="$3"
export CODENAME="$3"
export COMPONENT="$4"
if [ ! -d "$INCOMINGDIR" ]; then
echo "Directory $INCOMINGDIR is not a directory."
......@@ -31,6 +29,11 @@ if [ -z "$REPOSITORY" ]; then
exit 1
fi
if [ -z "$CODENAME" ]; then
echo "\$CODENAME is not provided."
exit 1
fi
if [ -z "$COMPONENT" ]; then
echo "\$COMPONENT is not provided."
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment