Skip to content

Commit b9c77a4

Browse files
authored
Update Job.java
When I call the function of build to build a job and it will be built twice. There are two post requests in the function of build.
1 parent 1e772a1 commit b9c77a4

File tree

1 file changed

+0
-1
lines changed
  • jenkins-client/src/main/java/com/offbytwo/jenkins/model

1 file changed

+0
-1
lines changed

jenkins-client/src/main/java/com/offbytwo/jenkins/model/Job.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public QueueReference build(boolean crumbFlag) throws IOException {
9797
*/
9898
public QueueReference build(Map<String, String> params) throws IOException {
9999
String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&");
100-
client.post(url + "buildWithParameters?" + qs);
101100
ExtractHeader location = client.post(url + "buildWithParameters?" + qs, null, ExtractHeader.class, false);
102101
return new QueueReference(location.getLocation());
103102
}

0 commit comments

Comments
 (0)