Skip to content

Commit

Permalink
Added JavaDoc for deleteJob method.
Browse files Browse the repository at this point in the history
  • Loading branch information
khmarbaise committed Aug 13, 2015
1 parent b9b4d78 commit 0dc5330
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/offbytwo/jenkins/JenkinsServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ public void deleteJob(String jobName) throws IOException {
client.post("/job/" + encode(jobName) + "/doDelete");
}

/**
* Delete a job from Jenkins.
* @param jobName The name of the job to be deleted.
* @param crumbFlag The crumFlag.
* @throws IOException In case of an failure.
*/
public void deleteJob(String jobName, boolean crumbFlag) throws IOException {
client.post("/job/" + encode(jobName) + "/doDelete", crumbFlag);
}
Expand Down

0 comments on commit 0dc5330

Please sign in to comment.