diff --git a/jenkins-client/src/main/java/com/offbytwo/jenkins/model/Job.java b/jenkins-client/src/main/java/com/offbytwo/jenkins/model/Job.java index ffced35a..8f411b7f 100644 --- a/jenkins-client/src/main/java/com/offbytwo/jenkins/model/Job.java +++ b/jenkins-client/src/main/java/com/offbytwo/jenkins/model/Job.java @@ -96,9 +96,7 @@ public QueueReference build(boolean crumbFlag) throws IOException { * @throws IOException in case of an error. */ public QueueReference build(Map params) throws IOException { - String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&"); - ExtractHeader location = client.post(url + "buildWithParameters?" + qs, null, ExtractHeader.class, false); - return new QueueReference(location.getLocation()); + return build(params, false); } /**