From 22f76a888ddce4477824fd05ce151df39836e380 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Mon, 3 Aug 2015 14:42:38 +0100 Subject: Use default parameters when triggering builds. --- .../bitbucketpullrequestbuilder/BitbucketBuildTrigger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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> { } public QueueTaskFuture startJob(BitbucketCause cause) { - Map values = new HashMap(); + Map 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())); -- cgit v1.2.3