Class JobDecorator<P extends Job<P,B>,B extends Run<P,B>>

java.lang.Object
jenkins.branch.JobDecorator<P,B>
Direct Known Subclasses:
ProjectDecorator

public class JobDecorator<P extends Job<P,B>,B extends Run<P,B>> extends Object
Something that can decorate a job. Decorations can include manipulating the list of JobPropertys of the project as well as custom tweaks that are specific to the project instance type itself.
  • Constructor Details

    • JobDecorator

      public JobDecorator()
  • Method Details

    • jobProperties

      @NonNull public List<JobProperty<? super P>> jobProperties(@NonNull List<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.
      Parameters:
      properties - the proposed JobPropertys.
      Returns:
      the resulting JobPropertys.
    • project

      @NonNull public P project(@NonNull P project)
      This method is an extension point whereby a BranchProperty can apply final tweaks to the project for the branch specific project. Implementations should try to obey the following rules: In general, this method should be seen as a final hook for use in those cases where the existing hooks prove insufficient.
      Parameters:
      project - the project.
      Returns:
      the supplied project for method chaining.