public class DownstreamProjectGridBuilder extends ProjectGridBuilder
ProjectGridBuilder based on the upstream/downstream relationship.| Modifier and Type | Class and Description |
|---|---|
static class |
DownstreamProjectGridBuilder.DescriptorImpl
Descriptor.
|
| Constructor and Description |
|---|
DownstreamProjectGridBuilder(String firstJob) |
| Modifier and Type | Method and Description |
|---|---|
ProjectGrid |
build(BuildPipelineView owner)
Builds the grid.
|
org.kohsuke.stapler.HttpResponse |
doBuild(org.kohsuke.stapler.StaplerRequest req,
BuildPipelineView owner)
Called to start a new pipeline instance
(normally by triggering some job.)
|
String |
getFirstJob() |
hudson.model.AbstractProject<?,?> |
getFirstJob(BuildPipelineView owner)
The job that's configured as the head of the pipeline.
|
boolean |
hasBuildPermission(BuildPipelineView owner)
If the grid produced by this builder supports the notion of "starting a new pipeline instance",
and if the current user has a permission to do so, then return true.
|
void |
onJobRenamed(BuildPipelineView owner,
hudson.model.Item item,
String oldName,
String newName)
Called by
BuildPipelineView when one of its members are renamed. |
getDescriptor@DataBoundConstructor public DownstreamProjectGridBuilder(String firstJob)
firstJob - Name of the job to lead the piepline.public String getFirstJob()
public hudson.model.AbstractProject<?,?> getFirstJob(BuildPipelineView owner)
owner - View that this builder is operating under.public boolean hasBuildPermission(BuildPipelineView owner)
ProjectGridBuilderhasBuildPermission in class ProjectGridBuilderowner - View that this builder is operating under.public org.kohsuke.stapler.HttpResponse doBuild(org.kohsuke.stapler.StaplerRequest req,
@AncestorInPath
BuildPipelineView owner)
throws IOException
ProjectGridBuilderdoBuild in class ProjectGridBuilderreq - Current HTTP requestowner - View that this builder is operating under.IOExceptionpublic ProjectGrid build(BuildPipelineView owner)
ProjectGridBuilderbuild in class ProjectGridBuilderowner - The view for which this builder is working. Never null.
If the ProjectGridBuilder takes user-supplied job name,
this parameter should be used as a context to resolve relative names.
See hudson.model.Hudson#getItem(String, hudson.model.ItemGroup) (where you obtain
ItemGroup by BuildPipelineView.getOwnerItemGroup().ProjectGrid can be empty.public void onJobRenamed(BuildPipelineView owner, hudson.model.Item item, String oldName, String newName) throws IOException
ProjectGridBuilderBuildPipelineView when one of its members are renamed.onJobRenamed in class ProjectGridBuilderowner - View that this builder is operating under.item - Job being renamed.oldName - Old short name of the jobnewName - New short name of the jobIOExceptionCopyright © 2004-2013 Hudson. All Rights Reserved.