|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.View
hudson.model.AllView
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.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, owner, PERMISSIONS, SORTER, transientActions |
| Constructor Summary | |
|---|---|
BuildPipelineView(java.lang.String name,
java.lang.String buildViewTitle,
java.lang.String selectedJob,
java.lang.String noOfDisplayedBuilds)
|
|
| Method Summary | |
|---|---|
void |
doManualExecution(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Invoke this method when the URL(/manualExecution/) is called |
java.lang.String |
getBuildResultURL(hudson.model.AbstractBuild<?,?> build)
Build a URL of a particular build |
java.util.List<java.util.List> |
getBuildsHistory()
Gets the collection of pipelines (rows in the view). |
java.lang.String |
getBuildViewTitle()
|
HudsonResult |
getHudsonResult(hudson.model.AbstractBuild<?,?> build)
Get the hudson result |
hudson.model.Job<?,?> |
getJob()
get the selected job |
hudson.model.AbstractBuild<?,?> |
getLastBuildOfAPipeline()
|
hudson.model.AbstractProject<?,?> |
getNextProject(hudson.model.AbstractBuild<?,?> currentBuild)
Get the downstream project. |
java.lang.String |
getNoOfDisplayedBuilds()
|
java.util.List<hudson.model.AbstractProject<?,?>> |
getProjectPipeline()
Get Project Pipeline |
java.lang.String |
getSelectedJob()
|
java.lang.String |
getSVNRefvisionNo(java.util.List<hudson.model.AbstractBuild<?,?>> builds)
Get the SVN revision no of a particular build |
boolean |
isNextBuildRequire()
Check whether the next Build is required in a build pipeline |
void |
setBuildViewTitle(java.lang.String buildViewTitle)
|
void |
setLastBuildOfAPipeline(hudson.model.AbstractBuild<?,?> lastBuildOfAPipeline)
|
void |
setNoOfDisplayedBuilds(java.lang.String noOfDisplayedBuilds)
|
void |
setSelectedJob(java.lang.String selectedJob)
|
protected void |
submit(org.kohsuke.stapler.StaplerRequest req)
Handles the configuration submission |
| Methods inherited from class hudson.model.AllView |
|---|
contains, doCreateItem, doSubmitDescription, getDescription, getItems, getPostConstructLandingPage, isEditable, onJobRenamed |
| Methods inherited from class hudson.model.View |
|---|
all, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, getAbsoluteUrl, getACL, getActions, getApi, getBuilds, getComputers, getDescriptor, getDisplayName, getDynamic, getItem, getItemCreatePermission, getJob, getOwner, getPeople, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isFilterExecutors, isFilterQueue, makeSearchIndex, rename |
| 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(java.lang.String name,
java.lang.String buildViewTitle,
java.lang.String selectedJob,
java.lang.String noOfDisplayedBuilds)
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 view| Method Detail |
|---|
protected void submit(org.kohsuke.stapler.StaplerRequest req)
throws java.io.IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class hudson.model.AllViewreq - Stapler Request
hudson.model.Descriptor.FormException - Form Exception
java.io.IOException - IO Exception
javax.servlet.ServletException - Servlet Exceptionpublic hudson.model.Job<?,?> getJob()
public java.util.List<hudson.model.AbstractProject<?,?>> getProjectPipeline()
public boolean isNextBuildRequire()
public hudson.model.AbstractProject<?,?> getNextProject(hudson.model.AbstractBuild<?,?> currentBuild)
currentBuild - current build
public java.lang.String getSVNRefvisionNo(java.util.List<hudson.model.AbstractBuild<?,?>> builds)
builds - build
public java.util.List<java.util.List> getBuildsHistory()
public HudsonResult getHudsonResult(hudson.model.AbstractBuild<?,?> build)
build - build
public java.lang.String getBuildResultURL(hudson.model.AbstractBuild<?,?> build)
build - the build
public void doManualExecution(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
req - Stapler Requestrsp - Stapler Responsepublic hudson.model.AbstractBuild<?,?> getLastBuildOfAPipeline()
public void setLastBuildOfAPipeline(hudson.model.AbstractBuild<?,?> lastBuildOfAPipeline)
public java.lang.String getBuildViewTitle()
public void setBuildViewTitle(java.lang.String buildViewTitle)
public java.lang.String getNoOfDisplayedBuilds()
public void setNoOfDisplayedBuilds(java.lang.String noOfDisplayedBuilds)
public java.lang.String getSelectedJob()
public void setSelectedJob(java.lang.String selectedJob)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||