Guest User

Untitled

a guest
Jan 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. commit = sh(returnStdout: true, script: 'git log -1 --oneline').trim()
  2.  
  3. String commitMsg = ""
  4.  
  5. List commitMsgPre = commit.split(" ")
  6.  
  7. for(int i=1; i<commitMsgPre.size(); i++){
  8. commitMsg += commitMsgPre.getAt(i) + " "
  9. }
Add Comment
Please, Sign In to add comment