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>
ATransientActionFactoryto 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 selectedWorkflowJobif its a Pull Request.Class<org.jenkinsci.plugins.workflow.job.WorkflowJob>type()Specifies theClassof the jobWorkflowJobto 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 theClassof the jobWorkflowJobto add the action to.- Specified by:
typein classTransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>- Returns:
- the
Classof 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 selectedWorkflowJobif its a Pull Request.- Specified by:
createForin classTransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>- Parameters:
workflowJob- the job to add the action to.- Returns:
CollectionsofMonitoringWorkflowJobActionifWorkflowJobis a Pull Request, else a empty collection.
-
-