Class ConditionalBuildStepHelper
java.lang.Object
org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuildStepHelper
- Author:
- Dominik Bartholdi (imod)
-
Method Summary
Modifier and TypeMethodDescriptiongetContainedBuilders
(AbstractProject<?, ?> ap, Class<T> type) Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project.getContainedBuilders
(Project<?, ?> p, Class<T> type) Gets the list of all buildsteps wrapped within anyConditionalBuilder
orSingleConditionalBuilder
from within the given project.static boolean
Is the maven plugin installed and active?
-
Method Details
-
getContainedBuilders
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:
-
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:
-