Class ConditionalBuildStepHelper

java.lang.Object
org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuildStepHelper

public class ConditionalBuildStepHelper extends Object
Helper to work with BuildSteps wrapped by ConditionalBuilder or SingleConditionalBuilder.
Author:
Dominik Bartholdi (imod)
  • Method Details

    • getContainedBuilders

      public static <T extends BuildStep> List<T> getContainedBuilders(Project<?,?> p, Class<T> type)
      Gets the list of all buildsteps wrapped within any ConditionalBuilder or SingleConditionalBuilder from within the given project. Keeps the API backward compatible (Internally calls getConditionalBuildersFromMavenProject(AbstractProject))
      Parameters:
      p - the project to get all wrapped builders for
      type - the type of builders to search for
      Returns:
      a list of all buildsteps, never null
      See Also:
    • getContainedBuilders

      public static <T extends BuildStep> List<T> getContainedBuilders(AbstractProject<?,?> ap, Class<T> type)
      Gets the list of all buildsteps wrapped within any ConditionalBuilder or SingleConditionalBuilder from within the given project.
      Parameters:
      ap - the project to get all wrapped builders for
      type - the type of builders to search for
      Returns:
      a list of all buildsteps, never null
    • isMavenPluginInstalled

      public static boolean isMavenPluginInstalled()
      Is the maven plugin installed and active?
      Returns: