Skip to content

Commit

Permalink
Update gitLog.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
zepouet authored Feb 1, 2017
1 parent 416ba64 commit a144b57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vars/gitLog.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ def committer() {
sh 'rm GIT_COMMITTER'
result
}

def email() {
sh 'git --no-pager log -1 --pretty=format:"%ae" > GIT_COMMITTER_EMAIL'
result=readFile('GIT_COMMITTER_EMAIL')
sh 'rm GIT_COMMITTER_EMAIL'
result
}

0 comments on commit a144b57

Please sign in to comment.