Skip to content

Commit

Permalink
Merge pull request utec#7 from utec/FIX-ISSUE-6
Browse files Browse the repository at this point in the history
Fix issue utec#6 : update bitbucket jsonpath in order to get a email of push author
  • Loading branch information
jrichardsz authored Nov 27, 2019
2 parents 6ec4cd5 + 524555d commit 058fadc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/jenkins-plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ bitbucket.cloneUrlPrefix.https = https://bitbucket.org/

bitbucket.jsonpath.expression.repositoryName = $.repository.name
bitbucket.jsonpath.expression.branchName = $.push.changes[0].new.name
bitbucket.jsonpath.expression.authorId = $.actor.display_name
bitbucket.jsonpath.expression.authorId = groovy($.push.changes[0].new.target.author.raw)
bitbucket.groovy.expression.authorId = authorId.replace("<", "").replace(">", "").substring(authorId.lastIndexOf(" ")+1)
bitbucket.jsonpath.expression.eventMessage = $.push.changes[0].new.target.message


Expand All @@ -14,4 +15,4 @@ gitlab.jsonpath.expression.repositoryName = $.repository.name
gitlab.jsonpath.expression.branchName = groovy($.ref)
gitlab.groovy.expression.branchName = branchName.replace("refs/heads/","")
gitlab.jsonpath.expression.authorId = $.commits[0].author.email
gitlab.jsonpath.expression.eventMessage = $.commits[0].message
gitlab.jsonpath.expression.eventMessage = $.commits[0].message

0 comments on commit 058fadc

Please sign in to comment.