Closed Kaushikroy05 closed 5 years ago
Further information: the server against which we are seeing the above exception is running Jenkins 2.107.1, runs pipeline jobs exclusively, and is using the CloudBees Folders Plugin. We have passed the full URL to the folder that contains our jobs as the url to the jenkinsapi.jenkins.Jenkins()
constructor; else we weren't even getting this far.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closed due to inactivity
ISSUE TYPE
Jenkinsapi VERSION
0.3.6
Jenkins VERSION
2.0
SUMMARY
The get_job(job name) call against jenkins2.0 fails. It passes for freestyle jenkins 1,7 . In the following traceback the "response" variable is empty in case of jenkins version 2.0. However for freestyle jenkins the "response" is a dictionary with only one key "allBuilds".
Ant advise will be helpful.
KeyError Traceback (most recent call last)