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 inExtension
annotation to have your plugin work without rebuild plugin. - Override
getRebuildPage(ParameterValue)
. Don't forget to returnnull
for 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 ParameterValue
the class implementing RebuildParameterProvider
page a file in the resource directory of your custom ParameterValue
a 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 RebuildParameterPage
getRebuildPage
(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
RebuildParameterProvider
registered to Jenkins.
-