We have a Jenkins job that runs builds using specific parameters. Two of these parameters are important for me: the machine that the build is being deployed on, and the version number of the package that is deployed.
https://jenkinsurl/job/folder_level1/job/folder_level2/job/folder_level3/job_id/
Here is a sample of json output of the url:
https://jenkinsurl/job/folder_level1/job/folder_level2/job/folder_level3/job_id/api/json
{"actions":[{"parameters":[{"name":"lab_name","value":"labA"},{"name":"version_no","value":"1.1"}]}
Using the Jenkins REST API or the Python Jenkins wrapper, how would I search for the job if I know the folder_level1 and would like to match the lab name to a job in folder_level3 to finally get the version from that URL?