|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractDescribableImpl<ProjectGridBuilder>
au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectGridBuilder
public abstract class ProjectGridBuilder
Encapsulates the definition of how to layout projects into a ProjectGrid
.
Constructor Summary | |
---|---|
ProjectGridBuilder()
|
Method Summary | |
---|---|
abstract ProjectGrid |
build(BuildPipelineView owner)
Builds the grid. |
abstract org.kohsuke.stapler.HttpResponse |
doBuild(org.kohsuke.stapler.StaplerRequest req,
BuildPipelineView owner)
Called to start a new pipeline instance (normally by triggering some job.) |
ProjectGridBuilderDescriptor |
getDescriptor()
|
abstract 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. |
abstract boolean |
startsWithParameters(BuildPipelineView owner)
If the first job of the grid produced by this builder has parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectGridBuilder()
Method Detail |
---|
public abstract ProjectGrid build(BuildPipelineView owner)
owner
- 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 Jenkins.getItem(String, hudson.model.ItemGroup)
(where you obtain
ItemGroup
by View.getOwnerItemGroup()
.
ProjectGrid
can be empty.public void onJobRenamed(BuildPipelineView owner, hudson.model.Item item, String oldName, String newName) throws IOException
BuildPipelineView
when one of its members are renamed.
owner
- View that this builder is operating under.oldName
- Old short name of the jobnewName
- New short name of the jobitem
- Job being renamed.
IOException
public abstract boolean hasBuildPermission(BuildPipelineView owner)
owner
- View that this builder is operating under.
public abstract boolean startsWithParameters(BuildPipelineView owner)
owner
- View that this builder is operating under.
public abstract org.kohsuke.stapler.HttpResponse doBuild(org.kohsuke.stapler.StaplerRequest req, @AncestorInPath BuildPipelineView owner) throws IOException
req
- Current HTTP requestowner
- View that this builder is operating under.
IOException
public ProjectGridBuilderDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<ProjectGridBuilder>
getDescriptor
in class hudson.model.AbstractDescribableImpl<ProjectGridBuilder>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |