Package hudson.plugins.gearman
Class GearmanPluginUtil
java.lang.Object
hudson.plugins.gearman.GearmanPluginUtil
This class contains some useful utilities for this plugin
- Author:
- Khai Do
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Run<?,
?> Function to finds the build with the unique build id.static String
getRealName
(Computer computer) static void
setBuildDescription
(Run build, String description) Sets description of the build
-
Constructor Details
-
GearmanPluginUtil
public GearmanPluginUtil()
-
-
Method Details
-
getRealName
-
findBuild
Function to finds the build with the unique build id.- Parameters:
jobName
- The jenkins job or project name without folder namebuildNumber
- The jenkins build number- Returns:
- the build Run if found, otherwise return null
-
setBuildDescription
Sets description of the build- Parameters:
build
- Build to set the description ofdescription
- New build description- Throws:
IOException
-