|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.View
au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView
public class BuildPipelineView
This view displays the set of jobs that are related based on their upstream\downstream relationships as a pipeline. Each build pipeline becomes a row on the view.
| Nested Class Summary | |
|---|---|
static class |
BuildPipelineView.DescriptorImpl
This descriptor class is required to configure the View Page |
| Nested classes/interfaces inherited from class hudson.model.View |
|---|
hudson.model.View.People, hudson.model.View.PropertyList, hudson.model.View.UserInfo |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.View |
|---|
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, SORTER, transientActions |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
BuildPipelineView(String name,
String buildViewTitle,
String selectedJob,
String noOfDisplayedBuilds,
boolean triggerOnlyLatestJob)
|
|
BuildPipelineView(String name,
String buildViewTitle,
String selectedJob,
String noOfDisplayedBuilds,
boolean triggerOnlyLatestJob,
boolean alwaysAllowManualTrigger,
boolean showPipelineParameters,
int refreshFrequency)
|
|
| Method Summary | |
|---|---|
boolean |
contains(hudson.model.TopLevelItem item)
|
hudson.model.Item |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
String |
getAlwaysAllowManualTrigger()
|
BuildPipelineForm |
getBuildPipelineForm()
Returns BuildPipelineForm containing the build pipeline to display. |
String |
getBuildViewTitle()
|
List<hudson.model.AbstractProject<?,?>> |
getDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
Get a List of downstream projects. |
Collection<hudson.model.TopLevelItem> |
getItems()
|
String |
getNoOfDisplayedBuilds()
|
String |
getProjectURL(hudson.model.AbstractProject<?,?> project)
Retrieves the project URL |
int |
getRefreshFrequency()
|
int |
getRefreshFrequencyInMillis()
|
String |
getSelectedJob()
|
hudson.model.AbstractProject<?,?> |
getSelectedProject()
Gets the selected project |
String |
getShowPipelineParameters()
|
String |
getTriggerOnlyLatestJob()
|
boolean |
hasBuildPermission(hudson.model.AbstractProject<?,?> currentProject)
Checks whether the user has Build permission for the current project. |
boolean |
hasConfigurePermission()
Checks whether the user has Configure permission for the current project. |
boolean |
hasDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
Determines if the current project has any downstream projects |
boolean |
hasSelectedProject()
Tests if the selected project exists. |
boolean |
isAlwaysAllowManualTrigger()
|
boolean |
isShowPipelineParameters()
|
boolean |
isTriggerOnlyLatestJob()
|
void |
onJobRenamed(hudson.model.Item item,
String oldName,
String newName)
If a project name is changed we check if the selected job for this view also needs to be changed. |
int |
rerunSuccessfulBuild(String externalizableId)
|
void |
setAlwaysAllowManualTrigger(boolean alwaysAllowManualTrigger)
|
void |
setBuildViewTitle(String buildViewTitle)
|
void |
setNoOfDisplayedBuilds(String noOfDisplayedBuilds)
|
void |
setRefreshFrequency(int refreshFrequency)
|
void |
setSelectedJob(String selectedJob)
|
void |
setShowPipelineParameters(boolean showPipelineParameters)
|
void |
setTriggerOnlyLatestJob(boolean triggerOnlyLatestJob)
|
protected void |
submit(org.kohsuke.stapler.StaplerRequest req)
Handles the configuration submission |
int |
triggerManualBuild(Integer upstreamBuildNumber,
String triggerProjectName,
String upstreamProjectName)
Trigger a manual build |
| Methods inherited from class hudson.model.View |
|---|
all, allInstantiable, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllProperties, getApi, getApplicablePropertyDescriptors, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename, save |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor
public BuildPipelineView(String name,
String buildViewTitle,
String selectedJob,
String noOfDisplayedBuilds,
boolean triggerOnlyLatestJob)
name - the name of the pipeline build view.buildViewTitle - the build view title.selectedJob - the first job in the build pipeline.noOfDisplayedBuilds - a count of the number of builds displayed on the viewtriggerOnlyLatestJob - Indicates whether only the latest job will be triggered.
@DataBoundConstructor
public BuildPipelineView(String name,
String buildViewTitle,
String selectedJob,
String noOfDisplayedBuilds,
boolean triggerOnlyLatestJob,
boolean alwaysAllowManualTrigger,
boolean showPipelineParameters,
int refreshFrequency)
name - the name of the pipeline build view.buildViewTitle - the build view title.selectedJob - the first job in the build pipeline.noOfDisplayedBuilds - a count of the number of builds displayed on the viewtriggerOnlyLatestJob - Indicates whether only the latest job will be triggered.alwaysAllowManualTrigger - Indicates whether manual trigger will always be available.showPipelineParameters - Indicates whether pipeline parameter values should be shown.refreshFrequency - Frequency at which the build pipeline plugin refreshes build cards| Method Detail |
|---|
protected void submit(org.kohsuke.stapler.StaplerRequest req)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class hudson.model.Viewreq - Stapler Request
hudson.model.Descriptor.FormException - Form Exception
IOException - IO Exception
javax.servlet.ServletException - Servlet Exceptionpublic hudson.model.AbstractProject<?,?> getSelectedProject()
public boolean hasSelectedProject()
public boolean hasBuildPermission(hudson.model.AbstractProject<?,?> currentProject)
currentProject - - The project being viewed.
Itempublic boolean hasConfigurePermission()
public List<hudson.model.AbstractProject<?,?>> getDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
currentProject - - The project from which we want the downstream projects
public boolean hasDownstreamProjects(hudson.model.AbstractProject<?,?> currentProject)
currentProject - - The project from which we are testing.
public BuildPipelineForm getBuildPipelineForm()
throws URISyntaxException
URISyntaxException - URISyntaxException
public String getProjectURL(hudson.model.AbstractProject<?,?> project)
throws URISyntaxException
project - - The project
URISyntaxException
URISyntaxException - URISyntaxExceptionProjectUtil#getProjectURL(AbstractProject)}
@JavaScriptMethod
public int triggerManualBuild(Integer upstreamBuildNumber,
String triggerProjectName,
String upstreamProjectName)
upstreamBuildNumber - upstream build numbertriggerProjectName - project that is triggeredupstreamProjectName - upstream project
@JavaScriptMethod public int rerunSuccessfulBuild(String externalizableId)
externalizableId - the externalizableId
public String getBuildViewTitle()
public void setBuildViewTitle(String buildViewTitle)
public String getNoOfDisplayedBuilds()
public void setNoOfDisplayedBuilds(String noOfDisplayedBuilds)
public String getSelectedJob()
public void setSelectedJob(String selectedJob)
public boolean isTriggerOnlyLatestJob()
public String getTriggerOnlyLatestJob()
public void setTriggerOnlyLatestJob(boolean triggerOnlyLatestJob)
public boolean isAlwaysAllowManualTrigger()
public String getAlwaysAllowManualTrigger()
public void setAlwaysAllowManualTrigger(boolean alwaysAllowManualTrigger)
public boolean isShowPipelineParameters()
public String getShowPipelineParameters()
public int getRefreshFrequency()
public void setRefreshFrequency(int refreshFrequency)
public int getRefreshFrequencyInMillis()
public void setShowPipelineParameters(boolean showPipelineParameters)
showPipelineParameters - showPipelineParameterspublic Collection<hudson.model.TopLevelItem> getItems()
getItems in class hudson.model.Viewpublic boolean contains(hudson.model.TopLevelItem item)
contains in class hudson.model.View
public void onJobRenamed(hudson.model.Item item,
String oldName,
String newName)
onJobRenamed in class hudson.model.Viewitem - - The Item that has been renamedoldName - - The old name of the ItemnewName - - The new name of the Item
public hudson.model.Item doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doCreateItem in class hudson.model.ViewIOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||