X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Fta-rpm-deploy.sh;fp=jjb%2Fshell%2Fta-rpm-deploy.sh;h=f0381e88cb8ab68dedd8d9f3f17200f953fc9835;hp=da977c7c6418bcb831c69386b19d2c701bf49b2b;hb=263030a4071bcdeaca085dde57ca821bc6690092;hpb=7575d2a1bd2d3d9af3d23b20432cc3fe8f100a01 diff --git a/jjb/shell/ta-rpm-deploy.sh b/jjb/shell/ta-rpm-deploy.sh index da977c7..f0381e8 100644 --- a/jjb/shell/ta-rpm-deploy.sh +++ b/jjb/shell/ta-rpm-deploy.sh @@ -37,7 +37,7 @@ mkdir -p "$sources_dir" for artifact in \ `ls $results_dir/repo/*.rpm` do - if curl --head --fail $nexus_repo_url/$release_path/rpms/$(uname -m)/$(basename $artifact) + if curl -L --head --fail $nexus_repo_url/$release_path/rpms/$(uname -m)/$(basename $artifact) then echo "RPM - $(basename $artifact) already available in Nexus" mv $results_dir/repo/$(basename $artifact) $results_dir/repo/duplicates/ @@ -51,7 +51,7 @@ for artifact in \ for artifact in \ `ls $results_dir/src_repo/*.rpm` do - if curl --head --fail $nexus_repo_url/$release_path/rpms/Sources/$(basename $artifact) + if curl -L --head --fail $nexus_repo_url/$release_path/rpms/Sources/$(basename $artifact) then echo "Source RPM - $(basename $artifact) already available in Nexus" mv $results_dir/src_repo/$(basename $artifact) $results_dir/src_repo/duplicates/