aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS.Nishio <nishio@densan-labs.net>2015-08-05 01:01:55 +0900
committerS.Nishio <nishio@densan-labs.net>2015-08-05 01:01:55 +0900
commit636cb7acb982f351f36005cbb71292e1c92ff52a (patch)
treef2d390821b9427f59fc87758cbae1ad2a984e79f
parent6b38251469fa07a1a96cf03ec84e931904f352a0 (diff)
parent22f76a888ddce4477824fd05ce151df39836e380 (diff)
downloadbbprb-636cb7acb982f351f36005cbb71292e1c92ff52a.tar.gz
Merge pull request #54 from Page-/use-default-params
Use default parameters when triggering builds.
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java
index 6e938a6..879facb 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java
@@ -121,7 +121,7 @@ public class BitbucketBuildTrigger extends Trigger<AbstractProject<?, ?>> {
}
public QueueTaskFuture<?> startJob(BitbucketCause cause) {
- Map<String, ParameterValue> values = new HashMap<String, ParameterValue>();
+ Map<String, ParameterValue> values = this.getDefaultParameters();
values.put("sourceBranch", new StringParameterValue("sourceBranch", cause.getSourceBranch()));
values.put("targetBranch", new StringParameterValue("targetBranch", cause.getTargetBranch()));
values.put("repositoryOwner", new StringParameterValue("repositoryOwner", cause.getRepositoryOwner()));