Class GearmanPluginUtil

java.lang.Object
hudson.plugins.gearman.GearmanPluginUtil

public class GearmanPluginUtil extends Object
This class contains some useful utilities for this plugin
Author:
Khai Do
  • Constructor Details

    • GearmanPluginUtil

      public GearmanPluginUtil()
  • Method Details

    • getRealName

      public static String getRealName(Computer computer)
    • findBuild

      public static Run<?,?> findBuild(String jobName, int buildNumber)
      Function to finds the build with the unique build id.
      Parameters:
      jobName - The jenkins job or project name without folder name
      buildNumber - The jenkins build number
      Returns:
      the build Run if found, otherwise return null
    • setBuildDescription

      public static void setBuildDescription(Run build, String description) throws IOException
      Sets description of the build
      Parameters:
      build - Build to set the description of
      description - New build description
      Throws:
      IOException