I am trying to write a Python script to talk to my Jenkins instance. I am using the latest version of the module jenkinsapiand requesting Jenkins 1.509.3.
I can get a list of tasks, for example:
l=j.get_jobs_list()
where jis the instance jenkinsapi.Jenkins(I used the requestor from jenkinsapi.utils.requesterto skip the ssl check)
However, when I try to get additional information about a particular job using
j.get_job(l[0])
it fails to cope with this error: Inappropriate content found at [some_address]and the returned one is a bunch of HTML (which looks like the start page of my instance, the one that you see when you log in) instead of everything that should look like an answer, Inserting [some_address]into the browser gives me what I expect in return.
While I can get some information about the Jenkins instance, I am really interested in learning about individual works. Any ideas how to fix this and get job information?
source
share