Change-Id: I5c8fdafa6cf1b084413d8b9a812a8d877bc2ab6f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
sudo yum install -y "$URL"
elif [[ $URL == *.repo ]]
then
- sudo curl --silent -o "$REPO_FILE" "$URL"
+ # shellcheck disable=SC2154
+ repo_file="${{URL##*/}}"
+ sudo curl --silent -o /etc/yum.repos.d/"$repo_file" "$URL"
sudo yum install -y opendaylight
else
echo "URL is not a link to .rpm or .repo"
# yamllint disable-line rule:line-length
default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
description: 'Link to .repo or .rpm file'
- - string:
- name: REPO_FILE
- default: '/etc/yum.repos.d/opendaylight-52-release.repo'
- description: 'Name of the .repo file'
scm:
- integration-gerrit-scm: