aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorPagan Gazzard <pjgazzard@googlemail.com>2015-08-03 14:42:38 +0100
committerPagan Gazzard <pjgazzard@googlemail.com>2015-08-03 14:42:38 +0100
commit22f76a888ddce4477824fd05ce151df39836e380 (patch)
treef2d390821b9427f59fc87758cbae1ad2a984e79f /src/main/java
parent6b38251469fa07a1a96cf03ec84e931904f352a0 (diff)
downloadbbprb-22f76a888ddce4477824fd05ce151df39836e380.tar.gz
Use default parameters when triggering builds.
Diffstat (limited to 'src/main/java')
-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()));