Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adapt maven path search for files and dirs
[releng/global-jjb.git]
/
shell
/
maven-fetch-metadata.sh
diff --git
a/shell/maven-fetch-metadata.sh
b/shell/maven-fetch-metadata.sh
index
4696451
..
f07bb78
100644
(file)
--- a/
shell/maven-fetch-metadata.sh
+++ b/
shell/maven-fetch-metadata.sh
@@
-15,7
+15,11
@@
pom_path="pom.xml"
file_path=$(echo $MAVEN_PARAMS | grep -E "\-f \S+" | awk '{ print $2 }')
if [ ! -z $file_path ]; then
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.
fi
# Ensure we fail the job if any steps fail.