public class JobDecorator<P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> extends Object
JobProperty
s of the project as well as custom
tweaks that are specific to the project instance type itself.Constructor and Description |
---|
JobDecorator() |
Modifier and Type | Method and Description |
---|---|
List<hudson.model.JobProperty<? super P>> |
jobProperties(List<hudson.model.JobProperty<? super P>> properties)
This method is an extension point whereby a
BranchProperty can filter or enhance the set of
JobProperty to be used by the branch specific project. |
P |
project(P project)
This method is an extension point whereby a
BranchProperty can apply final tweaks to the project
for the branch specific project. |
@NonNull public List<hudson.model.JobProperty<? super P>> jobProperties(@NonNull List<hudson.model.JobProperty<? super P>> properties)
BranchProperty
can filter or enhance the set of
JobProperty
to be used by the branch specific project.properties
- the proposed JobProperty
s.JobProperty
s.@NonNull public P project(@NonNull P project)
BranchProperty
can apply final tweaks to the project
for the branch specific project. Implementations should try to obey the following rules:
JobProperty
instances in the job, use
jobProperties(List)
instead.BuildWrapper
instances in the job, use
ProjectDecorator.buildWrappers(List)
instead.Publisher
instances in the job, use ProjectDecorator.publishers(java.util.List)
instead.project
- the project.Copyright © 2016–2017. All rights reserved.