Changes get_job_info to get_build_info

Changes incorrect get_job_info call to correct get_build_info in docs.

Closes-bug: #1660089
Change-Id: I0a0ada795c4b0385a7ba6b23d0654b9faf077869
This commit is contained in:
Sam Clotfelter 2017-01-28 19:03:54 -05:00
parent 0f6739103b
commit 0843ae7850

View File

@ -86,7 +86,7 @@ This is an example showing how to create, configure and delete Jenkins jobs.
# requires creating and configuring the api-test job to accept 'param1' & 'param2' # requires creating and configuring the api-test job to accept 'param1' & 'param2'
server.build_job('api-test', {'param1': 'test value 1', 'param2': 'test value 2'}) server.build_job('api-test', {'param1': 'test value 1', 'param2': 'test value 2'})
last_build_number = server.get_job_info('api-test')['lastCompletedBuild']['number'] last_build_number = server.get_job_info('api-test')['lastCompletedBuild']['number']
build_info = server.get_job_info('api-test', last_build_number) build_info = server.get_build_info('api-test', last_build_number)
print build_info print build_info
# get all jobs from the specific view # get all jobs from the specific view