Package se.diabol.jenkins.pipeline
Class DeliveryPipelineView
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.View
se.diabol.jenkins.pipeline.DeliveryPipelineView
- All Implemented Interfaces:
ExtensionPoint,Describable<View>,DescriptorByNameOwner,ModelObject,Saveable,SearchableModelObject,SearchItem,AccessControlled,Badgeable,ModelObjectWithChildren,HasWidgets
A view that shows one or more delivery pipelines: chains of jobs with downstream dependencies, or Pipeline
(Jenkinsfile) jobs. The page polls
api/json and renders the Component model it gets back.
Field names are the persisted format of 1.x, which Job DSL's deliveryPipelineView also writes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOne pipeline of the view: the job it starts with and, optionally, the one it ends with.static classstatic classPipelines found by a regular expression over job names; the capture group names the pipeline.Nested classes/interfaces inherited from class hudson.model.View
View.PropertyListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.View
CONFIGURE, CREATE, DELETE, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryPipelineView(String name) DeliveryPipelineView(String name, ViewGroup owner) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(TopLevelItem item) org.kohsuke.stapler.HttpResponseStops the build with the given number.doCreateItem(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) org.kohsuke.stapler.HttpResponsedoManualStep(String project, String upstream, String buildId) Triggers a manually triggered task, continuing from a build of its upstream job.org.kohsuke.stapler.HttpResponsedoProceedInput(String project, String buildId, String task) Lets a Pipeline run continue past the input step the given task, or else the run, is waiting at.org.kohsuke.stapler.HttpResponseSchedules a build of the job like the one with the given number, or when a stage is named, restarts that build from the stage.getApi()The components with their pipelines.getItems()intintintbooleanThe 1.x name ofisPagingEnabled().longintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidonJobRenamed(Item item, String oldName, String newName) protected ObjectvoidsetAllowAbort(boolean allowAbort) voidsetAllowManualTriggers(boolean allowManualTriggers) voidsetAllowPipelineStart(boolean allowPipelineStart) voidsetAllowRebuild(boolean allowRebuild) voidsetComponentSpecs(List<DeliveryPipelineView.ComponentSpec> componentSpecs) voidsetMaxNumberOfVisiblePipelines(int maxNumberOfVisiblePipelines) voidsetNoOfColumns(int noOfColumns) voidsetNoOfPipelines(int noOfPipelines) voidsetPagingEnabled(boolean pagingEnabled) voidsetRegexpFirstJobs(List<DeliveryPipelineView.RegExpSpec> regexpFirstJobs) voidsetShowAbsoluteDateTime(boolean showAbsoluteDateTime) voidsetShowAggregatedPipeline(boolean showAggregatedPipeline) voidsetShowChanges(boolean showChanges) voidsetShowDescription(boolean showDescription) voidsetShowPromotions(boolean showPromotions) voidsetShowStaticAnalysisResults(boolean showStaticAnalysisResults) voidsetShowTestResults(boolean showTestResults) voidsetShowTotalBuildTime(boolean showTotalBuildTime) voidsetSorting(String sorting) voidsetUpdateInterval(int updateInterval) protected voidsubmit(org.kohsuke.stapler.StaplerRequest2 req) Methods inherited from class hudson.model.View
all, allInstantiable, create, create, createViewFromXML, doCheckJobName, doChildrenContextMenu, doConfigDotXml, doConfigDotXml, doConfigSubmit, doCreateItem, doDoDelete, doItemCategories, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getBuilds, getColumns, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIconFileName, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPostConstructLandingPage, getProperties, getQueueItems, getSearchGroup, getSearchIcon, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getVisiblePropertyDescriptors, isAutomaticRefreshEnabled, isDefault, isEditable, isFilterExecutors, isFilterQueue, isMyViewsProperty, makeSearchIndex, makeSearchIndex, registerPermissions, rename, save, setDescription, setFilterExecutors, setFilterQueue, submit, toString, updateByXml, updateTransientActions, writeXmlMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface jenkins.widgets.HasWidgets
getWidget, getWidgetsMethods inherited from interface jenkins.model.ModelObjectWithChildren
doChildrenContextMenu
-
Constructor Details
-
DeliveryPipelineView
-
DeliveryPipelineView
-
-
Method Details
-
readResolve
-
getComponentSpecs
-
setComponentSpecs
-
getRegexpFirstJobs
-
setRegexpFirstJobs
-
getNoOfPipelines
public int getNoOfPipelines() -
setNoOfPipelines
public void setNoOfPipelines(int noOfPipelines) -
getNoOfColumns
public int getNoOfColumns() -
setNoOfColumns
public void setNoOfColumns(int noOfColumns) -
getSorting
-
setSorting
-
getUpdateInterval
public int getUpdateInterval() -
setUpdateInterval
public void setUpdateInterval(int updateInterval) -
getMaxNumberOfVisiblePipelines
public int getMaxNumberOfVisiblePipelines() -
setMaxNumberOfVisiblePipelines
public void setMaxNumberOfVisiblePipelines(int maxNumberOfVisiblePipelines) -
isPagingEnabled
public boolean isPagingEnabled() -
getPagingEnabled
public boolean getPagingEnabled()The 1.x name ofisPagingEnabled(). -
setPagingEnabled
public void setPagingEnabled(boolean pagingEnabled) -
isShowAggregatedPipeline
public boolean isShowAggregatedPipeline() -
setShowAggregatedPipeline
public void setShowAggregatedPipeline(boolean showAggregatedPipeline) -
isShowChanges
public boolean isShowChanges() -
setShowChanges
public void setShowChanges(boolean showChanges) -
isShowDescription
public boolean isShowDescription() -
setShowDescription
public void setShowDescription(boolean showDescription) -
isShowTotalBuildTime
public boolean isShowTotalBuildTime() -
setShowTotalBuildTime
public void setShowTotalBuildTime(boolean showTotalBuildTime) -
isShowTestResults
public boolean isShowTestResults() -
setShowTestResults
public void setShowTestResults(boolean showTestResults) -
isShowStaticAnalysisResults
public boolean isShowStaticAnalysisResults() -
setShowStaticAnalysisResults
public void setShowStaticAnalysisResults(boolean showStaticAnalysisResults) -
isShowPromotions
public boolean isShowPromotions() -
setShowPromotions
public void setShowPromotions(boolean showPromotions) -
isShowAbsoluteDateTime
public boolean isShowAbsoluteDateTime() -
setShowAbsoluteDateTime
public void setShowAbsoluteDateTime(boolean showAbsoluteDateTime) -
isAllowPipelineStart
public boolean isAllowPipelineStart() -
setAllowPipelineStart
public void setAllowPipelineStart(boolean allowPipelineStart) -
isAllowManualTriggers
public boolean isAllowManualTriggers() -
setAllowManualTriggers
public void setAllowManualTriggers(boolean allowManualTriggers) -
isAllowRebuild
public boolean isAllowRebuild() -
setAllowRebuild
public void setAllowRebuild(boolean allowRebuild) -
isAllowAbort
public boolean isAllowAbort() -
setAllowAbort
public void setAllowAbort(boolean allowAbort) -
getSettings
-
getServerTime
@Exported public long getServerTime() -
getComponents
The components with their pipelines. The request may carrypageandcomponentto page one component's instances, andfullscreen=trueto switch paging off. -
doManualStep
public org.kohsuke.stapler.HttpResponse doManualStep(@QueryParameter String project, @QueryParameter String upstream, @QueryParameter String buildId) Triggers a manually triggered task, continuing from a build of its upstream job. -
doRebuild
public org.kohsuke.stapler.HttpResponse doRebuild(@QueryParameter String project, @QueryParameter String buildId, @QueryParameter String stage) Schedules a build of the job like the one with the given number, or when a stage is named, restarts that build from the stage. -
doAbort
public org.kohsuke.stapler.HttpResponse doAbort(@QueryParameter String project, @QueryParameter String buildId) Stops the build with the given number. -
doProceedInput
public org.kohsuke.stapler.HttpResponse doProceedInput(@QueryParameter String project, @QueryParameter String buildId, @QueryParameter String task) Lets a Pipeline run continue past the input step the given task, or else the run, is waiting at. -
getApi
-
getItems
-
contains
-
onJobRenamed
- Overrides:
onJobRenamedin classView
-
submit
protected void submit(org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException - Overrides:
submitin classView- Throws:
IOExceptionjakarta.servlet.ServletExceptionDescriptor.FormException
-
doCreateItem
public Item doCreateItem(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Overrides:
doCreateItemin classView- Throws:
IOExceptionjakarta.servlet.ServletException
-