Package org.kohsuke.github
Class GHWorkflowJobQueryBuilder
- java.lang.Object
-
- org.kohsuke.github.GHQueryBuilder<GHWorkflowJob>
-
- org.kohsuke.github.GHWorkflowJobQueryBuilder
-
public class GHWorkflowJobQueryBuilder extends GHQueryBuilder<GHWorkflowJob>
Lists up jobs of a workflow run with some filtering.- Author:
- Guillaume Smet
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHQueryBuilder
req
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GHWorkflowJobQueryBuilderall()Apply a filter to return jobs from all executions of this workflow run.GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.GHWorkflowJobQueryBuilderlatest()Apply a filter to only return the jobs of the most recent execution of the workflow run.PagedIterable<GHWorkflowJob>list()List.
-
-
-
Method Detail
-
latest
public GHWorkflowJobQueryBuilder latest()
Apply a filter to only return the jobs of the most recent execution of the workflow run.- Returns:
- the workflow run job query builder
-
all
public GHWorkflowJobQueryBuilder all()
Apply a filter to return jobs from all executions of this workflow run.- Returns:
- the workflow run job run query builder
-
list
public PagedIterable<GHWorkflowJob> list()
List.- Specified by:
listin classGHQueryBuilder<GHWorkflowJob>- Returns:
- the paged iterable
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-