Skip to content

Commit

Permalink
Fixed #176 HttpResponseException: Not Found (createJob)
Browse files Browse the repository at this point in the history
 o Using the crumbFlag = false instead of true.
  • Loading branch information
khmarbaise committed Aug 17, 2016
1 parent 16adfbc commit 426797a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
* maven-resources-plugin to 3.0.0
* maven-jar-plugin to 3.0.0

[Fixed issue 176 HttpResponseException: Not Found (createJob)][issue-176]
Based on the wrong usage of the sub methods using crumbFlag=true instead
of crumbFlag=false.

[Fixed issue 162][issue-162]

JenkinsJob.details() produced NPE which has been got via view.getJob().
Expand Down Expand Up @@ -574,6 +578,7 @@ TestReport testReport = mavenJob.getLastSuccessfulBuild().getTestReport();
[issue-169]: https://github.com/jenkinsci/java-client-api/issues/169
[issue-172]: https://github.com/jenkinsci/java-client-api/issues/172
[issue-174]: https://github.com/jenkinsci/java-client-api/issues/174
[issue-176]: https://github.com/jenkinsci/java-client-api/issues/176
[pull-123]: https://github.com/jenkinsci/java-client-api/pull/123
[pull-149]: https://github.com/jenkinsci/java-client-api/pull/149
[pull-158]: https://github.com/jenkinsci/java-client-api/pull/158
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public Optional<FolderJob> getFolderJob(Job job) throws IOException {
* @throws IOException
*/
public void createJob(String jobName, String jobXml) throws IOException {
createJob(null, jobName, jobXml, true);
createJob(null, jobName, jobXml, false);
}

/**
Expand All @@ -357,7 +357,7 @@ public void createJob(String jobName, String jobXml, Boolean crumbFlag) throws I
* @throws IOException
*/
public void createJob(FolderJob folder, String jobName, String jobXml) throws IOException {
createJob(folder, jobName, jobXml, true);
createJob(folder, jobName, jobXml, false);
}

/**
Expand Down

0 comments on commit 426797a

Please sign in to comment.