Fix up xpath syntax in mri-stage script 99/97399/1
authorTomas Cere <tomas.cere@pantheon.tech>
Mon, 6 Sep 2021 10:03:28 +0000 (12:03 +0200)
committerTomas Cere <tomas.cere@pantheon.tech>
Mon, 6 Sep 2021 10:03:28 +0000 (12:03 +0200)
We are using a different xpath version in our stack
so fixup the syntax so it actually runs.

Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Change-Id: Iff38ac1c5b79ffe761c0c6c099033b2169ce704e

jjb/releng-maven-mri-stage.sh

index d3920bb2f08fe7e8c93116c4876e4b9651a8808f..9dfb7859e00bdd4a51ab04b659a824e42fc6e100 100644 (file)
@@ -18,7 +18,7 @@ staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE
 mkdir -p "$WORKSPACE/archives"
 echo "$staging_repo ${NEXUS_URL}/content/repositories/$staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt"
 
-staged_version=$(find . -name '*karaf*.pom' -exec xpath -q -e '/project/version/text()' {} +)
+staged_version=$(find . -name '*karaf*.pom' -exec xpath {} '/project/version/text()' \; 2> /dev/null)
 BUNDLE_URL="${NEXUS_URL}/content/repositories/$staging_repo/org/opendaylight/${PROJECT}/${KARAF_ARTIFACT}/${staged_version}/${KARAF_ARTIFACT}-${staged_version}.zip"
 
 # Cleanup