I'm looking to output the result of a Jenkins build into an email using Email-ext plugin + a groovy text template.
By tweaking the default groovy template slightly (i.e., no code edits), I have gotten the output to look like:
* [] Testing default post receive hook script | Author: Dev One
- File: README [Change type > edit]
* [] Script enabled | Author: Dev Two
- File: README [Change type > edit]
* [] Custom Email Text tweaking | Author: Dev Three
- File: README [Change type > edit]
I would like to add the following to the email:
- add the hash from git for each change/commit
- the output of
git pull origin <branch>
I've looked at the Jenkins API and the Email-ext plugin, but being fairly new to the internals of Jenkins, I'm not clear on how or what I should be looking at. Any and all pointers are much appreciated!