Commit 83657701 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

gitlab-ci: Fix uninitialized variable on package deployment

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <[email protected]>
parent 2d3ecece
Pipeline #153572180 passed with stages
in 27 minutes and 41 seconds
......@@ -112,13 +112,13 @@ deploy:
pass = $OBS_PASS
EOF
- |
BASE_DIR="$(pwd)"
OSC_WORKDIR="$BASE_DIR/osc_workdir"
ARTIFACTS_DIR="$BASE_DIR/artifacts"
DSC_FILENAME=$(basename $(ls "$ARTIFACTS_DIR"/*.dsc))
PACKAGES="${DSC_FILENAME%%_*}${CI_COMMIT_TAG:+ ${DSC_FILENAME%.dsc}}"
PROJECTS="${GITLAB_CI_OBS_PROJECT_UNSTABLE}${CI_COMMIT_TAG:+ ${GITLAB_CI_OBS_PROJECT}}"
for package in $PACKAGES; do
BASE_DIR="$(pwd)"
OSC_WORKDIR="$BASE_DIR/osc_workdir"
ARTIFACTS_DIR="$BASE_DIR/artifacts"
DSC_FILENAME=$(basename $(ls "$ARTIFACTS_DIR"/*.dsc))
PROJECTS="${GITLAB_CI_OBS_PROJECT_UNSTABLE}${CI_COMMIT_TAG:+ ${GITLAB_CI_OBS_PROJECT}}"
for project in $PROJECTS; do
mkdir -p "$OSC_WORKDIR"
cd "$OSC_WORKDIR"
......
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