aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-05-31 10:42:13 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-05-31 10:42:13 +0200
commit942c650dd2103cc7f50d5b15274c79017f60cc70 (patch)
treed87aba42a2f58173340ef3e3c08d7405dcd57975 /src/main/java
parent290653e67596b635acb38aaf278c5bef314b9a22 (diff)
downloadbbprb-942c650dd2103cc7f50d5b15274c79017f60cc70.tar.gz
Use `display_name` instead of `username`
Bitbucket is removing `username` from event payloads.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java b/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java
index 4f57f04..d05b96b 100644
--- a/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java
+++ b/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java
@@ -264,7 +264,7 @@ public class BitbucketBuildTrigger extends Trigger<AbstractProject<?, ?>> {
dstRepository, pr.getString("title"),
src.getJSONObject("commit").getString("hash"),
dst.getJSONObject("commit").getString("hash"),
- pr.getJSONObject("author").getString("username"));
+ pr.getJSONObject("author").getString("display_name"));
switch (event) {
case "pullrequest:created":
startJob(cause);