Package hudson.plugins.gearman
Class GearmanProject<JobT extends Job,RunT extends Run>
java.lang.Object
hudson.plugins.gearman.GearmanProject<JobT,RunT>
- Direct Known Subclasses:
GearmanAbstractProject
,GearmanWorkflowProject
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map
getBuildData
(RunT run) Get build data specific for this type of project.getJob()
Get the project itself
-
Constructor Details
-
GearmanProject
-
-
Method Details
-
getBuildData
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
Get the project itself- Returns:
- encapsulated project
-