Class ParameterizedBranchProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.BranchProperty>
jenkins.branch.BranchProperty
io.jenkins.plugins.multibranchparams.ParameterizedBranchProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<jenkins.branch.BranchProperty>
public class ParameterizedBranchProperty
extends jenkins.branch.BranchProperty
A
BranchProperty that injects build parameters into every branch job
of a Multibranch Pipeline from the UI, without touching individual Jenkinsfiles.
Attach this property via:
- Multibranch Pipeline → Configure → Branch Sources → Property strategy → All branches get the same properties → Add property → Branch Parameters
- Or use
ParameterizedBranchPropertyStrategyfor regex-based filtering.
Parameter policy
The parameterPolicy field controls how plugin-defined parameters
interact with any parameters {} block in the Jenkinsfile.
See ParameterPolicy for a full description of each mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJenkins extension descriptor forParameterizedBranchProperty.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjobDecorator(Class<P> clazz) voidsetParameterDefinitions(List<ParameterDefinition> parameterDefinitions) voidsetParameterPolicy(ParameterPolicy parameterPolicy) Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
Constructor Details
-
ParameterizedBranchProperty
@DataBoundConstructor public ParameterizedBranchProperty()Required by Stapler for data binding.
-
-
Method Details
-
getParameterDefinitions
-
setParameterDefinitions
@DataBoundSetter public void setParameterDefinitions(@NonNull List<ParameterDefinition> parameterDefinitions) -
getParameterPolicy
-
setParameterPolicy
-
jobDecorator
public <P extends Job<P,B>, jenkins.branch.JobDecorator<P,B extends Run<P, B>> B> jobDecorator(Class<P> clazz) - Overrides:
jobDecoratorin classjenkins.branch.BranchProperty
-