Class RunContainerImpl
java.lang.Object
io.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.model.BlueRun>
io.jenkins.blueocean.rest.model.BlueRunContainer
io.jenkins.blueocean.service.embedded.rest.RunContainerImpl
- All Implemented Interfaces:
io.jenkins.blueocean.rest.pageable.Pageable<io.jenkins.blueocean.rest.model.BlueRun>
,io.jenkins.blueocean.rest.Reachable
,Iterable<io.jenkins.blueocean.rest.model.BlueRun>
public class RunContainerImpl
extends io.jenkins.blueocean.rest.model.BlueRunContainer
- Author:
- Vivek Pandey
-
Constructor Summary
ConstructorDescriptionRunContainerImpl
(io.jenkins.blueocean.rest.model.BluePipeline pipeline, Job job) -
Method Summary
Modifier and TypeMethodDescriptionio.jenkins.blueocean.rest.model.BlueRun
create
(org.kohsuke.stapler.StaplerRequest request) Schedules a build.io.jenkins.blueocean.rest.model.BlueRun
io.jenkins.blueocean.rest.hal.Link
getLink()
Iterator<io.jenkins.blueocean.rest.model.BlueRun>
iterator()
Iterator<io.jenkins.blueocean.rest.model.BlueRun>
iterator
(int start, int limit) Methods inherited from class io.jenkins.blueocean.rest.model.Container
getDynamic, list
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RunContainerImpl
public RunContainerImpl(@NonNull io.jenkins.blueocean.rest.model.BluePipeline pipeline, @NonNull Job job)
-
-
Method Details
-
getLink
public io.jenkins.blueocean.rest.hal.Link getLink() -
get
- Specified by:
get
in classio.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.model.BlueRun>
-
iterator
-
iterator
- Specified by:
iterator
in interfaceio.jenkins.blueocean.rest.pageable.Pageable<io.jenkins.blueocean.rest.model.BlueRun>
- Overrides:
iterator
in classio.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.model.BlueRun>
-
create
public io.jenkins.blueocean.rest.model.BlueRun create(org.kohsuke.stapler.StaplerRequest request) Schedules a build. If build already exists in the queue and the pipeline does not support running multiple builds at the same time, return a reference to the existing build.- Specified by:
create
in classio.jenkins.blueocean.rest.model.BlueRunContainer
- Returns:
- Queue item.
-