This is an automated email from the ASF dual-hosted git repository.

ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new d90bc30  HDDS-5495. Ozone version mismatch in Kubernetes test lib 
(#2544)
d90bc30 is described below

commit d90bc30669ab4c31a0d22a829351b4ef39c50d4b
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Aug 23 10:35:43 2021 +0200

    HDDS-5495. Ozone version mismatch in Kubernetes test lib (#2544)
---
 hadoop-ozone/dist/src/main/k8s/examples/testlib.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/dist/src/main/k8s/examples/testlib.sh 
b/hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
index 041591d..112162e 100644
--- a/hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
+++ b/hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
@@ -105,7 +105,9 @@ regenerate_resources() {
 
   if [ $(basename $PARENT_OF_PARENT) == "k8s" ]; then
     #running from src dir
-    OZONE_ROOT=$(realpath ../../../../../target/ozone-0.6.0-SNAPSHOT)
+    local version
+    version=$(cd ../../../../.. && mvn help:evaluate 
-Dexpression=ozone.version -q -DforceStdout)
+    OZONE_ROOT=$(realpath ../../../../../target/ozone-${version})
   else
     #running from dist
     OZONE_ROOT=$(realpath ../../..)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to