Package jenkins.branch
Class ProjectDecorator<P extends Project<P,B>,B extends Build<P,B>>
- java.lang.Object
-
- jenkins.branch.JobDecorator<P,B>
-
- jenkins.branch.ProjectDecorator<P,B>
-
public class ProjectDecorator<P extends Project<P,B>,B extends Build<P,B>> extends JobDecorator<P,B>
Something that can decorate a project. Decorations can include manipulating the list ofPublisher
instances, the list ofBuildWrapper
instances, and things specified in the more genericJobDecorator
.- Since:
- 0.2
- Author:
- Stephen Connolly
-
-
Constructor Summary
Constructors Constructor Description ProjectDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BuildWrapper>
buildWrappers(List<BuildWrapper> wrappers)
This method is an extension point whereby aProjectDecorator
can filter or enhance the set ofBuildWrapper
to be used by the job.List<Publisher>
publishers(List<Publisher> publishers)
This method is an extension point whereby aProjectDecorator
can filter or enhance the set ofPublisher
to be used by the job.-
Methods inherited from class jenkins.branch.JobDecorator
jobProperties, project
-
-
-
-
Method Detail
-
publishers
@NonNull public List<Publisher> publishers(@NonNull List<Publisher> publishers)
This method is an extension point whereby aProjectDecorator
can filter or enhance the set ofPublisher
to be used by the job.
-
buildWrappers
@NonNull public List<BuildWrapper> buildWrappers(@NonNull List<BuildWrapper> wrappers)
This method is an extension point whereby aProjectDecorator
can filter or enhance the set ofBuildWrapper
to be used by the job.- Parameters:
wrappers
- the proposedBuildWrapper
s.- Returns:
- the resulting
BuildWrapper
s.
-
-