Class ConditionalBuildStepHelper
- java.lang.Object
-
- org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuildStepHelper
-
public class ConditionalBuildStepHelper extends Object
- Author:
- Dominik Bartholdi (imod)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends BuildStep>
List<T>getContainedBuilders(AbstractProject<?,?> ap, Class<T> type)
Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project.static <T extends BuildStep>
List<T>getContainedBuilders(Project<?,?> p, Class<T> type)
Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project.static boolean
isMavenPluginInstalled()
Is the maven plugin installed and active?
-
-
-
Method Detail
-
getContainedBuilders
public static <T extends BuildStep> List<T> getContainedBuilders(Project<?,?> p, Class<T> type)
Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project. Keeps the API backward compatible (Internally callsgetConditionalBuildersFromMavenProject(AbstractProject)
)- Parameters:
p
- the project to get all wrapped builders fortype
- the type of builders to search for- Returns:
- a list of all buildsteps, never
null
- See Also:
- JENKINS-20543
-
getContainedBuilders
public static <T extends BuildStep> List<T> getContainedBuilders(AbstractProject<?,?> ap, Class<T> type)
Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project.- Parameters:
ap
- the project to get all wrapped builders fortype
- 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:
-
-