Skip to content
Snippets Groups Projects
Commit 332545cb authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

CI: fix TARGET_COMPONENT_URL handling

parent 35e0f458
No related branches found
No related tags found
No related merge requests found
Pipeline #3033 passed
......@@ -65,9 +65,9 @@ echo "$BASE_USER_OPTIONS_YML" | sed "s|%GITLAB_ROOT%|$GITLAB_ROOT|g" > ../config
if test -n "$TARGET_COMPONENTS_URL"; then
# Add components by repository URL
for TARGET_COMPONENT_URL in $TARGET_COMPONENTS_URL; do
NEW_COMPONENT+=" $(orc components --repository-url "$TARGET_COMPONENT_URL" \
| grep '^Component' \
| cut -d' ' -f2)"
NEW_COMPONENT="$(orc components --repository-url "$TARGET_COMPONENT_URL" \
| grep '^Component' \
| cut -d' ' -f2)"
if test -z "$NEW_COMPONENT"; then
log "Warning: ignoring URL $TARGET_COMPONENT_URL since it doesn't match any component"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment