Package io.jenkins.plugins.monitoring
Class MonitoringWorkflowJobActionFactory
- java.lang.Object
-
- jenkins.model.TransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>
-
- io.jenkins.plugins.monitoring.MonitoringWorkflowJobActionFactory
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class MonitoringWorkflowJobActionFactory extends TransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>
ATransientActionFactory
to add an action to specificWorkflowJob
.- Author:
- Simon Symhoven
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jenkins.model.TransientActionFactory
TransientActionFactory.Cache
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MonitoringWorkflowJobActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
Add the action to the selectedWorkflowJob
if its a Pull Request.Class<org.jenkinsci.plugins.workflow.job.WorkflowJob>
type()
Specifies theClass
of the jobWorkflowJob
to add the action to.-
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
-
-
-
Method Detail
-
type
public Class<org.jenkinsci.plugins.workflow.job.WorkflowJob> type()
Specifies theClass
of the jobWorkflowJob
to add the action to.- Specified by:
type
in classTransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>
- Returns:
- the
Class
of job to add the action to.
-
createFor
@NonNull public Collection<? extends Action> createFor(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
Add the action to the selectedWorkflowJob
if its a Pull Request.- Specified by:
createFor
in classTransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>
- Parameters:
workflowJob
- the job to add the action to.- Returns:
Collections
ofMonitoringWorkflowJobAction
ifWorkflowJob
is a Pull Request, else a empty collection.
-
-