jenkins-rest
jenkins-rest copied to clipboard
Fix For Folder Parser
https://github.com/cdancy/jenkins-rest/blob/246f5c29f59d5d3d947186943550b7c67570322f/src/main/java/com/cdancy/jenkins/rest/parsers/OptionalFolderPathParser.java#L45
Hello!
The following code needs to be removed
.append(FOLDER_NAME_PREFIX)
Because with him "view/Folder" -> "job/view/job/Folder/"
@traarttra this is the first I've seen this pop and this code has been in place for quite a while now. Do you have an example on how this is failing for you?
Sure! Job is stored in view in the following path: http://jenkins.host/jenkins/view/IB/view/Jobs%20In%20View/job/job_in_view/
For example, I get information about a job like this:
After parsing the path, I get this output:
This way I get incorrect parsing of the directory, since "job" is added before each slash
@cdancy, hi! R U fix this problem or not?
@traarttra I have not. If you'd like to send in a PR I'd be happy to review and look things over.
@martinda