[bash]
pip install python-jenkins
[/bash]
[python]
import jenkins
j = jenkins.Jenkins(‘http://host/jenkins’)
print j.get_jobs()
print j.build_job(jobname)
[/python]
Welcome to Python Jenkins’s documentation! — Python Jenkins v0.2 documentation
Welcome to AutoJenkins’s documentation! — AutoJenkins 0.4.3 documentation