SHARE
TWEET

Untitled

a guest Mar 20th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # make sure the pom version tag looks something like: <version>1.0.0-${lastCommitHash}</version>
  2.  
  3. # save last commit in variable
  4. LAST_COMMIT=$(git rev-parse HEAD | cut -c 1-10)
  5.  
  6. # set env variable for maven
  7. mvn clean package -DlastCommitHash=$LAST_COMMIT
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top