Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit = sh(returnStdout: true, script: 'git log -1 --oneline').trim()
- String commitMsg = ""
- List commitMsgPre = commit.split(" ")
- for(int i=1; i<commitMsgPre.size(); i++){
- commitMsg += commitMsgPre.getAt(i) + " "
- }
Add Comment
Please, Sign In to add comment