Class AbstractPipelineImpl
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BluePipeline
io.jenkins.blueocean.service.embedded.rest.AbstractPipelineImpl
- All Implemented Interfaces:
io.jenkins.blueocean.rest.model.BlueManagedSource
,io.jenkins.blueocean.rest.model.BluePipelineItem
,io.jenkins.blueocean.rest.model.BlueRunnableItem
,io.jenkins.blueocean.rest.Reachable
- Direct Known Subclasses:
FreeStylePipeline
public class AbstractPipelineImpl
extends io.jenkins.blueocean.rest.model.BluePipeline
Pipeline abstraction implementation. Use it to extend other kind of jenkins jobs
- Author:
- Vivek Pandey
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.jenkins.blueocean.rest.model.BlueOrganization
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
ModifierConstructorDescriptionprotected
AbstractPipelineImpl
(io.jenkins.blueocean.rest.model.BlueOrganization organization, Job job) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
void
disable()
void
enable()
io.jenkins.blueocean.rest.model.BlueFavorite
favorite
(io.jenkins.blueocean.rest.model.BlueFavoriteAction favoriteAction) Collection<io.jenkins.blueocean.rest.model.BlueActionProxy>
static ItemGroup<?>
getBaseGroup
(io.jenkins.blueocean.rest.model.BlueOrganization org) Tries to obtain the base group for aBlueOrganization
static String
getFullDisplayName
(io.jenkins.blueocean.rest.model.BlueOrganization org, Item item) Returns full display name relative to theBlueOrganization
base.static String
getFullName
(io.jenkins.blueocean.rest.model.BlueOrganization org, Item item) Returns full name relative to theBlueOrganization
base.getJob()
Gives underlying Jenkins jobio.jenkins.blueocean.rest.model.BlueRun
io.jenkins.blueocean.rest.hal.Link
getLink()
getName()
io.jenkins.blueocean.rest.model.BlueOrganization
getPermissions
(AbstractItem item) io.jenkins.blueocean.rest.model.BlueQueueContainer
getQueue()
static String
getRecursivePathFromFullName
(io.jenkins.blueocean.rest.model.BluePipeline pipeline) Calculates the recursive path for theBluePipeline
.io.jenkins.blueocean.rest.model.BlueRunContainer
getRuns()
io.jenkins.blueocean.rest.model.BluePipelineScm
getScm()
io.jenkins.blueocean.rest.model.BlueTrendContainer
boolean
Methods inherited from class io.jenkins.blueocean.rest.model.Resource
getLinks, getState
-
Field Details
-
organization
protected final io.jenkins.blueocean.rest.model.BlueOrganization organization -
isRunning
-
-
Constructor Details
-
AbstractPipelineImpl
protected AbstractPipelineImpl(io.jenkins.blueocean.rest.model.BlueOrganization organization, Job job)
-
-
Method Details
-
getOrganizationName
- Specified by:
getOrganizationName
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getOrganizationName
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getOrganization
@NonNull public io.jenkins.blueocean.rest.model.BlueOrganization getOrganization()- Specified by:
getOrganization
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getOrganization
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getName
- Specified by:
getName
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getName
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getDisplayName
- Specified by:
getDisplayName
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getDisplayName
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getWeatherScore
- Specified by:
getWeatherScore
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getWeatherScore
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getLatestRun
public io.jenkins.blueocean.rest.model.BlueRun getLatestRun()- Specified by:
getLatestRun
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getLatestRun
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getEstimatedDurationInMillis
- Specified by:
getEstimatedDurationInMillis
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getEstimatedDurationInMillis
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getRuns
public io.jenkins.blueocean.rest.model.BlueRunContainer getRuns()- Specified by:
getRuns
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getRuns
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getActions
- Specified by:
getActions
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getActions
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getQueue
@Navigable public io.jenkins.blueocean.rest.model.BlueQueueContainer getQueue()- Specified by:
getQueue
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getQueue
in classio.jenkins.blueocean.rest.model.BluePipeline
-
delete
- Throws:
IOException
InterruptedException
-
favorite
public io.jenkins.blueocean.rest.model.BlueFavorite favorite(@JsonBody io.jenkins.blueocean.rest.model.BlueFavoriteAction favoriteAction) - Specified by:
favorite
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getFullName
- Specified by:
getFullName
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getFullName
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getFullDisplayName
- Specified by:
getFullDisplayName
in interfaceio.jenkins.blueocean.rest.model.BluePipelineItem
- Specified by:
getFullDisplayName
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getDisabled
- Specified by:
getDisabled
in classio.jenkins.blueocean.rest.model.BluePipeline
-
enable
- Specified by:
enable
in classio.jenkins.blueocean.rest.model.BluePipeline
- Throws:
IOException
-
disable
- Specified by:
disable
in classio.jenkins.blueocean.rest.model.BluePipeline
- Throws:
IOException
-
getFullDisplayName
public static String getFullDisplayName(@Nullable io.jenkins.blueocean.rest.model.BlueOrganization org, @NonNull Item item) Returns full display name relative to theBlueOrganization
base. Each display name is separated by '/' and each display name is url encoded- Parameters:
org
- the organization the item belongs toitem
- to return the full display name of- Returns:
- full display name
-
getFullName
public static String getFullName(@Nullable io.jenkins.blueocean.rest.model.BlueOrganization org, @NonNull Item item) Returns full name relative to theBlueOrganization
base. Each name is separated by '/'- Parameters:
org
- the organization the item belongs toitem
- to return the full name of- Returns:
-
getBaseGroup
Tries to obtain the base group for aBlueOrganization
- Parameters:
org
- to get the base group of- Returns:
- the base group
-
getLink
public io.jenkins.blueocean.rest.hal.Link getLink() -
getRecursivePathFromFullName
public static String getRecursivePathFromFullName(io.jenkins.blueocean.rest.model.BluePipeline pipeline) Calculates the recursive path for theBluePipeline
. The path is relative to the org base- Parameters:
pipeline
- to get the recursive path from- Returns:
- the recursive path
-
getParameters
- Specified by:
getParameters
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getParameters
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getParameterDefinitions
-
getJob
Gives underlying Jenkins job- Returns:
- jenkins job
-
getPermissions
- Specified by:
getPermissions
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getScm
public io.jenkins.blueocean.rest.model.BluePipelineScm getScm()- Specified by:
getScm
in interfaceio.jenkins.blueocean.rest.model.BlueManagedSource
- Specified by:
getScm
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getTrends
public io.jenkins.blueocean.rest.model.BlueTrendContainer getTrends()- Specified by:
getTrends
in interfaceio.jenkins.blueocean.rest.model.BlueRunnableItem
- Specified by:
getTrends
in classio.jenkins.blueocean.rest.model.BluePipeline
-
getPermissions
-
isFavorite
public boolean isFavorite()
-