diff options
author | Pagan Gazzard <pjgazzard@googlemail.com> | 2015-08-03 14:42:38 +0100 |
---|---|---|
committer | Pagan Gazzard <pjgazzard@googlemail.com> | 2015-08-03 14:42:38 +0100 |
commit | 22f76a888ddce4477824fd05ce151df39836e380 (patch) | |
tree | f2d390821b9427f59fc87758cbae1ad2a984e79f /src | |
parent | 6b38251469fa07a1a96cf03ec84e931904f352a0 (diff) | |
download | bbprb-22f76a888ddce4477824fd05ce151df39836e380.tar.gz |
Use default parameters when triggering builds.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketBuildTrigger.java | 2 |
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())); |