retryduck opened a new issue, #8326: URL: https://github.com/apache/incubator-devlake/issues/8326
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened Loading Jenkins Jobs fails when a Jenkins job does not contain any slash '/' in its name. Seems the backend calls an invalid Jenkins path. ### What do you expect to happen - Configure a Jenkins Connection (Jenkins Version 2.492.1) (Connection Test Successful) - Add a Data Scope - select a Job name that does not contain any '/' in it. We do not have folder structures in our Jenkins. I selected our `example-app.` (Jenkins Job URL: `https://some-host/jenkins/job/example-app/)` - Multibranch Pipeline - Add this Data Scope to a Project - Click Connect Data - The Current Pipeline succeeds and loads the data for the selected job. ### How to reproduce - Configure a Jenkins Connection (Jenkins Version 2.492.1) (Connection Test Successful) - Add a Data Scope - select a Job name that does not contain any '/' in it. We do not have folder structures in our Jenkins. I selected our `example-app.` (Jenkins Job URL: `https://some-host/jenkins/job/example-app/)` - Multibranch Pipeline - Add this Data Scope to a Project - Click Connect Data - The Current Pipeline panel shows status: failed and exception details containing the follwing text: > Error running pipeline 5. Wraps: (2) Error running task 31. (404) | Wraps: (2) error preparing task data for jenkins (404) | Wraps: (3) error decoding response from https://some-host/jenkins/view/all/api/json?tree=jobs%5BfullName%2Cname%2Cclass%2Curl%2Ccolor%2Cbase%2Cjobs%2CupstreamProjects%5Bname%5D%5D%7B0%2C100%7D: raw response: | | | | | | | | <!DOCTYPE html><html><head resURL="/jenkins/static/d7ed18f1" data-rooturl="/jenkins" data-resurl="/jenkins/static/d7ed18f1" data-extensions-available="true" data-unit-test="false" data-imagesurl="/jenkins/static/d7ed18f1/images" data-crumb-header="Jenkins-Crumb" data-crumb-value="d209b965fdbb4b272b2258b759cd58c0b801d66b26314a9f36094fb773567f83"> | | | | | | | | <title>Not Found [Jenkins]</title> ... and the entire page ... Seems ther URL, which is called returns the Jenkins HTML 404 (not found) page instead of a JSON response. When I put the url ` https://some-host/jenkins/view/all/api/json` in my browser, I also recieve a HTML-404 page. When I remove the `view/all` in the path of the URL like `https://some-host/jenkins/api/json` then, I receive a successful JSON response. ### Anything else Locally, I was able to fix the problem when I commented out line 76 in the follwing file: https://github.com/apache/incubator-devlake/blob/v1.0.1/backend/plugins/jenkins/tasks/task_data.go line 76: `// op.JobPath = "view/all"` ### Version v.1.0.1 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org