X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-fetch-metadata.sh;h=270056f472fa84d561f8f315c5f0448a7980ffd6;hb=2a10c83b2d506008cc6c01c134515fb6328e1f3a;hp=4696451bcd11eb19ecc72738bd983126eadd5ae0;hpb=c9e5000a4fdfbb63543b543814e95a480f09f743;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-fetch-metadata.sh b/shell/maven-fetch-metadata.sh index 4696451b..270056f4 100644 --- a/shell/maven-fetch-metadata.sh +++ b/shell/maven-fetch-metadata.sh @@ -8,14 +8,18 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## - +echo "---> maven-fetch-metadata.sh" # Uses wget to fetch a project's maven-metadata.xml files from a Maven repository. # Check for "-f" maven param, indicating a change in pom location. pom_path="pom.xml" file_path=$(echo $MAVEN_PARAMS | grep -E "\-f \S+" | awk '{ print $2 }') if [ ! -z $file_path ]; then - pom_path="$file_path/pom.xml" + if [ -d $file_path ]; then + pom_path="$file_path/pom.xml" + else + pom_path="$file_path" + fi fi # Ensure we fail the job if any steps fail.