diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-05-31 10:42:13 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-05-31 10:42:13 +0200 |
commit | 942c650dd2103cc7f50d5b15274c79017f60cc70 (patch) | |
tree | d87aba42a2f58173340ef3e3c08d7405dcd57975 /src/main/java | |
parent | 290653e67596b635acb38aaf278c5bef314b9a22 (diff) | |
download | bbprb-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.java | 2 |
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); |