Package hudson.plugins.release
Class SafeParametersAction
- java.lang.Object
-
- hudson.model.ParametersAction
-
- hudson.plugins.release.SafeParametersAction
-
- All Implemented Interfaces:
Action
,EnvironmentContributingAction
,LabelAssignmentAction
,ModelObject
,Queue.QueueAction
,Iterable<ParameterValue>
,RunAction2
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class SafeParametersAction extends ParametersAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SafeParametersAction.SafeParametersActionEnvironmentContributor
-
Field Summary
-
Fields inherited from class hudson.model.ParametersAction
KEEP_UNDEFINED_PARAMETERS_SYSTEM_PROPERTY_NAME, SAFE_PARAMETERS_SYSTEM_PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description SafeParametersAction(List<ParameterValue> parameters)
At this point the list of parameter values is guaranteed to be safe, which is parameter defined either at top level or release wrapper level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterValue
getParameter(String name)
Returns the parameter if defined as a regular parameters or it is a release-specific parameter defined by the release wrapper.List<ParameterValue>
getParameters()
Returns all parameters allowed by the job (defined as regular job parameters) and the parameters allowed by release-specific parameters definition.-
Methods inherited from class hudson.model.ParametersAction
buildEnvironment, createBuildWrappers, createUpdated, createVariableResolver, getAllParameters, getAssignedLabel, getDisplayName, getIconFileName, getUrlName, iterator, merge, onAttached, onLoad, shouldSchedule, substitute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.EnvironmentContributingAction
buildEnvVars
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SafeParametersAction
public SafeParametersAction(@Nonnull List<ParameterValue> parameters)
At this point the list of parameter values is guaranteed to be safe, which is parameter defined either at top level or release wrapper level.- Parameters:
parameters
- Parameters to be passed. All of them will be considered as safe
-
-
Method Detail
-
getParameters
public List<ParameterValue> getParameters()
Returns all parameters allowed by the job (defined as regular job parameters) and the parameters allowed by release-specific parameters definition.- Overrides:
getParameters
in classParametersAction
-
getParameter
public ParameterValue getParameter(String name)
Returns the parameter if defined as a regular parameters or it is a release-specific parameter defined by the release wrapper.- Overrides:
getParameter
in classParametersAction
-
-