From 942c650dd2103cc7f50d5b15274c79017f60cc70 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 31 May 2019 10:42:13 +0200 Subject: Use `display_name` instead of `username` Bitbucket is removing `username` from event payloads. --- src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildTrigger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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> { 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); -- cgit v1.2.3