Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jenkins get last commit message

sh(returnStdout: true, script: "git log -1 --pretty=%B").trim()
 
PREVIOUS NEXT
Tagged: #jenkins #commit #message
ADD COMMENT
Topic
Name
7+3 =