Class MonitoringWorkflowJobActionFactory

    • Constructor Detail

      • MonitoringWorkflowJobActionFactory

        public MonitoringWorkflowJobActionFactory()
    • Method Detail

      • type

        public Class<org.jenkinsci.plugins.workflow.job.WorkflowJob> type()
        Specifies the Class of the job WorkflowJob to add the action to.
        Specified by:
        type in class TransientActionFactory<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 selected WorkflowJob if its a Pull Request.
        Specified by:
        createFor in class TransientActionFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob>
        Parameters:
        workflowJob - the job to add the action to.
        Returns:
        Collections of MonitoringWorkflowJobAction if WorkflowJob is a Pull Request, else a empty collection.