Package io.jenkins.blueocean.rest.model
Class BluePipelineFolder
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BluePipeline
io.jenkins.blueocean.rest.model.BluePipelineFolder
- All Implemented Interfaces:
BlueContainerItem,BlueManagedSource,BluePipelineItem,BlueRunnableItem,Reachable
- Direct Known Subclasses:
BlueMultiBranchPipeline,BlueOrganizationFolder
Folder has pipelines, could also hold another BluePipelineFolders.
BluePipelineFolder subclasses BluePipeline in order to handle recursive pipelines path:
/pipelines/f1/pipelines/f2/pipelines/p1
- Author:
- Vivek Pandey
- See Also:
-
Field Summary
Fields inherited from class io.jenkins.blueocean.rest.model.BluePipeline
ACTIONS, CONFIGURE_PERMISSION, CREATE_PERMISSION, DISABLED, DISPLAY_NAME, ESTIMATED_DURATION, FULL_DISPLAY_NAME, FULL_NAME, LATEST_RUN, NAME, ORGANIZATION, PERMISSIONS, READ_PERMISSION, START_PERMISSION, STOP_PERMISSION, WEATHER_SCORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDynamic(String name) Gets nested BluePipeline inside the BluePipelineFolder For example for: /pipelines/folder1/pipelines/folder2/pipelines/p1, call sequence will be: getPipelines().get("folder1") getPipelines().get(folder2) getDynamics(p1)abstract BlueIcongetIcon()abstract Integerabstract IntegerReturns pipeline folder names present in this folder.abstract BluePipelineContainergetQueue()getRuns()Methods inherited from class io.jenkins.blueocean.rest.model.BluePipeline
disable, enable, favorite, getActions, getDisabled, getDisplayName, getFullDisplayName, getFullName, getName, getOrganization, getOrganizationName, getParameters, getPermissions, getScm, getTrends
-
Constructor Details
-
BluePipelineFolder
public BluePipelineFolder()
-
-
Method Details
-
getPipelines
- Specified by:
getPipelinesin interfaceBlueContainerItem- Returns:
- Gives pipeline container
-
getDynamic
Gets nested BluePipeline inside the BluePipelineFolder For example for: /pipelines/folder1/pipelines/folder2/pipelines/p1, call sequence will be:- getPipelines().get("folder1")
- getPipelines().get(folder2)
- getDynamics(p1)
- Specified by:
getDynamicin interfaceBlueContainerItem- Parameters:
name- name of pipeline- Returns:
- a
BluePipeline
-
getNumberOfFolders
- Specified by:
getNumberOfFoldersin interfaceBlueContainerItem- Returns:
- Number of folders in this folder
-
getNumberOfPipelines
- Specified by:
getNumberOfPipelinesin interfaceBlueContainerItem- Returns:
- Number of pipelines in this folder. Pipeline is any buildable type.
-
getWeatherScore
- Specified by:
getWeatherScorein interfaceBlueRunnableItem- Specified by:
getWeatherScorein classBluePipeline- Returns:
- weather health score percentile
-
getLatestRun
- Specified by:
getLatestRunin interfaceBlueRunnableItem- Specified by:
getLatestRunin classBluePipeline- Returns:
- The Latest Run for the branch
-
getEstimatedDurationInMillis
- Specified by:
getEstimatedDurationInMillisin interfaceBlueRunnableItem- Specified by:
getEstimatedDurationInMillisin classBluePipeline- Returns:
- Estimated duration based on last pipeline runs. -1 is returned if there is no estimate available.
-
getRuns
- Specified by:
getRunsin interfaceBlueRunnableItem- Specified by:
getRunsin classBluePipeline- Returns:
- Gives Runs in this pipeline
-
getQueue
- Specified by:
getQueuein interfaceBlueRunnableItem- Specified by:
getQueuein classBluePipeline- Returns:
- Gives
BlueQueueContainer
-
getIcon
- Specified by:
getIconin interfaceBlueContainerItem
-
getPipelineFolderNames
Returns pipeline folder names present in this folder.- Specified by:
getPipelineFolderNamesin interfaceBlueContainerItem
-