Skip to content

Commit

Permalink
updat doc
Browse files Browse the repository at this point in the history
  • Loading branch information
joelee2012 committed Dec 22, 2023
1 parent 427131a commit e5a79b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/user/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ build with parameters is supported too::
it's also possiable to iterate jobs of Jenkins, iterate jobs in first level::

# call function straightforward
>>> for job in j.iter_jobs():
>>> for job in j.iter():
... print(job)

# or pythonic
Expand All @@ -158,7 +158,7 @@ it's also possiable to iterate jobs of Jenkins, iterate jobs in first level::

or iterate with depth ::

>>> for job in j.iter_jobs(3):
>>> for job in j.iter(3):
... print(job)

>>> for job in j(3):
Expand Down Expand Up @@ -318,8 +318,8 @@ check if any build of project is running

get build with given number or display name

>>> build = job.get_build(1)
>>> build = job.get_build("some new build name")
>>> build = job.get(1)
>>> build = job.get("some new build name")

or subscript with build number

Expand All @@ -346,7 +346,7 @@ iterate builds(latest 100 builds) of this project, following are same
>>> for build in job:
... print(build)
...
>>> for build in job.iter_builds():
>>> for build in job.iter():
... print(build)
...

Expand Down Expand Up @@ -466,7 +466,7 @@ stop/term/kill build, more detail can be found: https://www.jenkins.io/doc/book/

get job of build:

>>> job = build.get_job()
>>> job = build.project

or get previous/next build:

Expand Down

0 comments on commit e5a79b2

Please sign in to comment.