Package com.sonyericsson.rebuild
Class RebuildParameterProvider
java.lang.Object
com.sonyericsson.rebuild.RebuildParameterProvider
- All Implemented Interfaces:
ExtensionPoint
Extension point to provide views to show parameters in rebuild page.
If you want your custom
ParameterValue to work with rebuild plugin,
do as followings:
- Add a dependency to rebuild plugin to your pom.xml. You should specify <optional>true</optional> to have your plugin work without rebuild plugin.
- Define a class implementing
RebuildParameterProvider. - Annotate the class with
Extension. You should specify option=true inExtensionannotation to have your plugin work without rebuild plugin. - Override
getRebuildPage(ParameterValue). Don't forget to returnnullfor parameter values other than your customParameterValue. There are two recommended ways to set values toRebuildParameterPage:Recommended way to set values Recommended 1 Recommended 2 clazz your custom ParameterValuethe class implementing RebuildParameterProviderpage a file in the resource directory of your custom ParameterValuea file in the resource directory of the class implementing RebuildParameterProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()abstract RebuildParameterPagegetRebuildPage(ParameterValue value) Provide a view for specifiedParameterValue.
-
Constructor Details
-
RebuildParameterProvider
public RebuildParameterProvider()
-
-
Method Details
-
getRebuildPage
Provide a view for specifiedParameterValue. Return null if cannot handle specifiedParameterValue.- Parameters:
value- a value to be shown in a rebuild page.- Returns:
- page for the parameter value. null for parameter values cannot be handled.
-
all
- Returns:
- all
RebuildParameterProviderregistered to Jenkins.
-