Extension Points defined in Project Inheritance Plugin

BuildViewExtension

This class servers as an extension point to render additional configuration entries for a build action.

It is useful to add additional properties to the build; regardless of whether or not this happens on a build or re-build.

The extension needs to implement a "value.groovy" or "value.jelly" which gets added into the form tag of the build submission. The name of this file can be overridden via #getValuePage() .

The fields will be put into the JSON form data inside the StaplerRequest when the build is executed. For simplicity's sake, the method jenkinsdoc:#onBuild(AbstractProject, StaplerRequest)[] will be called whenever a build is configured. </p>

Implementations:

(no known implementations)

InheritanceSelector

Extension point that allows other plugins to decide how a particular type of object should be treated during inheritenace.

During inheritance, the settings of multiple projects need to be merged into one object, since the leaf project needs to respond to Jenkins as if it did not do any inheritance.

For example, a project might inherit multiple SCM objects, but it has to be ensured that only one is returned to Jenkins. The default behaviour in that case is to use SCM that was defined "last". If you want to override that behaviour, just register a new subclass of InheritanceSelector that has SCM as the template type and returns a mode other than MODE#NOT_RESPONSIBLE fpr SCM in #getModeFor(Class) .

</p>

Implementations:

RebuildParameterFilter

This extension point allows you, to specify whether a given parameter should be included in a rebuild of a job, or not.

It can be used to remove automatically generated parameters, so that the rebuild can progress safely.

Each RebuildParameterFilter is called for each parameter of the previous build, that is about to be rebuilt. If any filter returns false when queried for #isParameterAllowed(ParameterValue) , the value is not copied into the new build.

Do note, that the parameter may still be present -- only that in these cases the default value from the project will be used, as if there were no value from the previous build.

Also do note, that the current rebuild implementation filters out all parameters, that are not StringParameterValue s (or subclasses). This is not guaranteed though, which is why this class accepts generic ParameterValue s. </p>

Implementations:

(no known implementations)

VersionChangeListener

This class tracks whenever a change is done on show version related item.

Implementations:

(no known implementations)