Class GearmanProject<JobT extends Job,RunT extends Run>

java.lang.Object
hudson.plugins.gearman.GearmanProject<JobT,RunT>
Direct Known Subclasses:
GearmanAbstractProject, GearmanWorkflowProject

public abstract class GearmanProject<JobT extends Job,RunT extends Run> extends Object
This class acts as facade for manipulation with Jenkins items in Gearman plugin. It allows to use one common object no matter whether the underlaying Jenkins project is AbstractProject or WorkflowJob, or something not yet supported. All Run related methods are accessed by getJob(), all differentiated methods are implemented specifically by this object. It's kind of a split brain, but it is caused by the jenkins creators them self, for details see https://jenkins.io/doc/developer/plugin-development/pipeline-integration/.
  • Constructor Details

    • GearmanProject

      public GearmanProject(JobT project)
  • Method Details

    • getBuildData

      protected Map getBuildData(RunT run)
      Get build data specific for this type of project. Common build data are: worker, manager, number, name, url, result.
      Parameters:
      run - object of the JobT
      Returns:
      specific build data map.
    • getJob

      public JobT getJob()
      Get the project itself
      Returns:
      encapsulated project