aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
diff options
context:
space:
mode:
authorShinsuke Nishio <nishio@densan-labs.net>2016-04-30 00:19:29 +0900
committerShinsuke Nishio <nishio@densan-labs.net>2016-04-30 00:19:29 +0900
commit14e6ef1c752e1761cd4fcbe7401382f4b2d01ef9 (patch)
tree221c08bed352d89fa1a8881dcb167eeba0b016d4 /src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
parent2d213eb8b0c2491e3e51844239911270041a5492 (diff)
parent8af88eec6b4e8deb09aa9efd47769749cdc0afbc (diff)
downloadbbprb-14e6ef1c752e1761cd4fcbe7401382f4b2d01ef9.tar.gz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java')
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
index 9b92775..4417d74 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
@@ -117,7 +117,9 @@ public class BitbucketRepository {
pullRequest.getDestination().getRepository().getRepositoryName(),
pullRequest.getTitle(),
pullRequest.getSource().getCommit().getHash(),
- pullRequest.getDestination().getCommit().getHash());
+ pullRequest.getDestination().getCommit().getHash(),
+ pullRequest.getAuthor().getCombinedUsername()
+ );
setBuildStatus(cause, BuildState.INPROGRESS, Jenkins.getInstance().getRootUrl());
this.builder.getTrigger().startJob(cause);
}
@@ -286,7 +288,8 @@ public class BitbucketRepository {
pullRequest.getDestination().getRepository().getRepositoryName(),
pullRequest.getTitle(),
pullRequest.getSource().getCommit().getHash(),
- pullRequest.getDestination().getCommit().getHash()
+ pullRequest.getDestination().getCommit().getHash(),
+ pullRequest.getAuthor().getCombinedUsername()
);
//@FIXME: Way to iterate over all available SCMSources