Class BlueIssueFactory

java.lang.Object
io.jenkins.blueocean.rest.factory.BlueIssueFactory
All Implemented Interfaces:
ExtensionPoint

public abstract class BlueIssueFactory extends Object implements ExtensionPoint
  • Constructor Details

    • BlueIssueFactory

      public BlueIssueFactory()
  • Method Details

    • getIssues

      public abstract Collection<BlueIssue> getIssues(Job job)
      Parameters:
      job - job
      Returns:
      issues
      See Also:
    • getIssues

      public abstract Collection<BlueIssue> getIssues(ChangeLogSet.Entry changeSetEntry)
      Parameters:
      changeSetEntry - entry
      Returns:
      issues
      See Also:
    • resolve

      public static Collection<BlueIssue> resolve(Job job)
      Find issues representing this job. e.g. a feature branch could take the format of "feature/TICKET-123" and be represented by TICKET-123 in JIRA Typically there is only one associated ticket
      Parameters:
      job - to find issues for
      Returns:
      issues representing this job
    • resolve

      public static Collection<BlueIssue> resolve(ChangeLogSet.Entry changeSetEntry)
      Finds any issues associated with the changeset e.g. a commit message could be "TICKET-123 fix all the things" and be associated with TICKET-123 in JIRA
      Parameters:
      changeSetEntry - entry
      Returns:
      issues representing the change