I have set up a multi-configuration project in Jenkins and I'm trying to manage those jobs through a command line script. I'm trying to use the jenkinsapi Python module for this. So far I've found how to get my job, but I can't figure out how to get specific build configurations to see if they've succeeded.
from jenkinsapi.jenkins import *
jenkins = Jenkins('http://example.org/jenkins')
job = jenkins.get_job('foobar')
# I can get job info here, but I don't know how to access specific configurations
Is there anyway to do this? Is each one of the multi-configuration projects a separate "job" or are they all lumped into the same job? I'm going to have to manage a lot of these types of projects in the future, and I want to be able to add a new hardware configuration to the build easily.
I do not think Python JenkinsAPI is suitable for working with Matrix jobs. Use Groovy scripts via Groovy Plugin to tap into Jenkins Java API.
Matrix classes live in hudson.matrix module.