doc: add get_job_config() example

Change-Id: I0d1ad26fc9b3c3343f25e3f34786a4891ac60c78
This commit is contained in:
Ken Dreyer 2017-05-03 10:55:40 -06:00
parent 04c153cc0b
commit 828eb92c48
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ This is an example showing how to create, configure and delete Jenkins jobs.
server.create_job('empty', jenkins.EMPTY_CONFIG_XML)
jobs = server.get_jobs()
print jobs
my_job = server.get_job_config('cool-job')
print(my_job) # prints XML configuration
server.build_job('empty')
server.disable_job('empty')
server.copy_job('empty', 'empty_copy')