backstage / community-plugins

Community plugins for Backstage
Apache License 2.0
112 stars 84 forks source link

🐛 jenkins-backend: job details under more than one folder #541

Open piyush94 opened 3 weeks ago

piyush94 commented 3 weeks ago

Plugin Name

jenkins-backend

📜 Description

If the job is under more than one folder the Get builds errors out. e.g my_jobs/test_jobs/job1 doesn't works. but my_jobs/job2 works

👍 Expected behavior

It should return the the builds irrespective of the depth of the job folder.

👎 Actual Behavior with Screenshots

jenkins.io/job-full-name: my_jobs/test_jobs/job1 fails with error: invalid json response body at https://my-jenkins.com/my_jobs/test_jobs%2Fjob1/api/json?tree=name,description,url,fullName,displayName,fullDisplayName,inQueue,builds[*]

👟 Reproduction steps

Set jenkins plugin annotation to a job location under more than one folder.

📃 Provide the context for the Bug.

Instead of %2F it should join the job URL with /job/ between folders.

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, but I'm happy to collaborate on a PR with someone else

awanlin commented 2 weeks ago

Looking for contributions 👀