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
-
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 BlueIcon
getIcon()
abstract Integer
abstract Integer
Returns pipeline folder names present in this folder.abstract BluePipelineContainer
getQueue()
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:
getPipelines
in 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:
getDynamic
in interfaceBlueContainerItem
- Parameters:
name
- name of pipeline- Returns:
- a
BluePipeline
-
getNumberOfFolders
- Specified by:
getNumberOfFolders
in interfaceBlueContainerItem
- Returns:
- Number of folders in this folder
-
getNumberOfPipelines
- Specified by:
getNumberOfPipelines
in interfaceBlueContainerItem
- Returns:
- Number of pipelines in this folder. Pipeline is any buildable type.
-
getWeatherScore
- Specified by:
getWeatherScore
in interfaceBlueRunnableItem
- Specified by:
getWeatherScore
in classBluePipeline
- Returns:
- weather health score percentile
-
getLatestRun
- Specified by:
getLatestRun
in interfaceBlueRunnableItem
- Specified by:
getLatestRun
in classBluePipeline
- Returns:
- The Latest Run for the branch
-
getEstimatedDurationInMillis
- Specified by:
getEstimatedDurationInMillis
in interfaceBlueRunnableItem
- Specified by:
getEstimatedDurationInMillis
in classBluePipeline
- Returns:
- Estimated duration based on last pipeline runs. -1 is returned if there is no estimate available.
-
getRuns
- Specified by:
getRuns
in interfaceBlueRunnableItem
- Specified by:
getRuns
in classBluePipeline
- Returns:
- Gives Runs in this pipeline
-
getQueue
- Specified by:
getQueue
in interfaceBlueRunnableItem
- Specified by:
getQueue
in classBluePipeline
- Returns:
- Gives
BlueQueueContainer
-
getIcon
- Specified by:
getIcon
in interfaceBlueContainerItem
-
getPipelineFolderNames
Returns pipeline folder names present in this folder.- Specified by:
getPipelineFolderNames
in interfaceBlueContainerItem
-