doc: add get_job_config() example
Change-Id: I0d1ad26fc9b3c3343f25e3f34786a4891ac60c78
This commit is contained in:
parent
04c153cc0b
commit
828eb92c48
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user