jenkinsci / jenkinsci/java-client-api
DisableJob function have a problem with Jobs inside folders
Open
- Dominant language
- Java
- Stars
- 913
- Forks
- 466
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
If we have a Job inside a folder, EncodingUtils.encode(jobName) will transform backslash "/" character into "%2F" and thus job will not be found.
public void disableJob(String jobName, boolean crumbFlag) throws IOException {
client.post("/job/" + EncodingUtils.encode(jobName) + "/disable", crumbFlag);
}
Contributor guide
Assessment
This issue has not been assessed yet.