I am trying to use the api4jenkins module in python, to build stats on Jenkins jobs. I need to access a few of the job properties, like the URL of the git repo used, as seen in the UI ( here Source Code Management \ Git \ Repositories \ Repository URL )
However, I do not understand how to get that property using api4jenkins, I am actually getting a small subset of the properties I see in the UI. ( my jobs are all FreeStyleProject
)
I could not find that in the doc ... I promsise, I googled/stackoverflowed the answer ...
from api4jenkins import Jenkins
client = Jenkins(JENKINS_BASE_URL, auth=(USERNAME, PASSWORD))
api_jobs = client.get_job('a_folder')
for j in api_jobs :
print(j.name) # FreeStyleProject, by the way
pprint.pprint(j.api_json())
pprint.pprint(j.configure())
Does anyone know ? or are the other api wrapper for jenkins and python more feature-complete ?
TIA !