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
Fix: Update Gradle publish job
[releng/global-jjb.git]
/
shell
/
maven-fetch-metadata.sh
diff --git
a/shell/maven-fetch-metadata.sh
b/shell/maven-fetch-metadata.sh
index
45f1a9b
..
4f719e3
100644
(file)
--- a/
shell/maven-fetch-metadata.sh
+++ b/
shell/maven-fetch-metadata.sh
@@
-13,7
+13,7
@@
echo "---> maven-fetch-metadata.sh"
# Check for "-f" maven param, indicating a change in pom location.
pom_path="pom.xml"
# 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 }')
+file_path=$(echo "$MAVEN_PARAMS" | grep -E
o
"\-f \S+" | awk '{ print $2 }')
if [ -n "$file_path" ]; then
if [ -d "$file_path" ]; then
pom_path="$file_path/pom.xml"
if [ -n "$file_path" ]; then
if [ -d "$file_path" ]; then
pom_path="$file_path/pom.xml"
@@
-28,9
+28,9
@@
set -xeu -o pipefail
project=$(xmlstarlet sel \
-N "x=http://maven.apache.org/POM/4.0.0" -t \
--if "/x:project/x:groupId" \
project=$(xmlstarlet sel \
-N "x=http://maven.apache.org/POM/4.0.0" -t \
--if "/x:project/x:groupId" \
- -v "/x:project/x:groupId" \
+
-v "/x:project/x:groupId" \
--elif "/x:project/x:parent/x:groupId" \
--elif "/x:project/x:parent/x:groupId" \
- -v "/x:project/x:parent/x:groupId" \
+
-v "/x:project/x:parent/x:groupId" \
--else -o "" "$pom_path")
project_path="${project//.//}"
--else -o "" "$pom_path")
project_path="${project//.//}"