rhtyd commented on a change in pull request #2433: Fix and enhance package 
script
URL: https://github.com/apache/cloudstack/pull/2433#discussion_r165005067
 
 

 ##########
 File path: packaging/package.sh
 ##########
 @@ -67,22 +75,32 @@ function packaging() {
             exit 2
         fi
     fi
+
     VERSION=$(cd ../; $MVN 
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate 
-Dexpression=project.version | grep --color=none '^[0-9]\.')
+    BASEVER=$(echo "$VERSION" | sed 's/-SNAPSHOT//g')
+    REALVER=$(echo "$BASEVER" | cut -d '-' -f 1)
+    BRAND=$(echo "$BASEVER" | cut -d '-' -f 2)
 
 Review comment:
   Instead of this, why not pass the branch as a new parameter that is used for 
the DEFREL option? Or, use sed on the package.sh script to replace the DEFREL 
option with the branch parameter?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to