Skip to content

Commit

Permalink
[FIXED JENKINS-20543] keep compatible API
Browse files Browse the repository at this point in the history
  • Loading branch information
imod committed Nov 13, 2013
1 parent 4e34efc commit bca0ca0
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -23,6 +23,21 @@ public class ConditionalBuildStepHelper {
private ConditionalBuildStepHelper() {
}

/**
* Gets the list of all buildsteps wrapped within any {@link ConditionalBuilder} or {@link SingleConditionalBuilder} from within the given project. Keeps the API backward compatible (Internally
* calls {@link #getConditionalBuildersFromMavenProject(AbstractProject)})
*
* @see https://issues.jenkins-ci.org/browse/JENKINS-20543
* @param p
* the project to get all wrapped builders for
* @param type
* the type of builders to search for
* @return a list of all buildsteps, never <code>null</code>
*/
public static <T extends BuildStep> List<T> getContainedBuilders(Project<?, ?> p, Class<T> type) {
return getContainedBuilders((AbstractProject<?, ?>) p, type);
}

/**
* Gets the list of all buildsteps wrapped within any {@link ConditionalBuilder} or {@link SingleConditionalBuilder} from within the given project.
*
Expand Down

0 comments on commit bca0ca0

Please sign in to comment.