org.jenkinsci.plugins.conditionalbuildstep
Class ConditionalBuildStepHelper

java.lang.Object
  extended by 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 Summary
static
<T extends hudson.tasks.BuildStep>
List<T>
getContainedBuilders(hudson.model.AbstractProject<?,?> ap, Class<T> type)
          Gets the list of all buildsteps wrapped within any ConditionalBuilder or SingleConditionalBuilder from within the given project.
static boolean isMavenPluginInstalled()
          Is the maven plugin installed and active?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContainedBuilders

public static <T extends hudson.tasks.BuildStep> List<T> getContainedBuilders(hudson.model.AbstractProject<?,?> ap,
                                                                              Class<T> type)
Gets the list of all buildsteps wrapped within any ConditionalBuilder or SingleConditionalBuilder from within the given project.

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

isMavenPluginInstalled

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

Returns:


Copyright © 2004-2013. All Rights Reserved.