Class ReadYamlStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStep
-
- org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
-
- org.jenkinsci.plugins.pipeline.utility.steps.conf.ReadYamlStep
-
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class ReadYamlStep extends AbstractFileOrTextStep
Reads a yaml file from the workspace.- Author:
- Philippe GRANET <philippe.granet@gmail.com>.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadYamlStep.DescriptorImplstatic classReadYamlStep.Execution-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CODE_POINT_LIMIT_PROPERTYstatic StringDEFAULT_MAX_ALIASES_PROPERTYstatic intHARDCODED_CEILING_MAX_ALIASES_FOR_COLLECTIONSstatic intLIBRARY_DEFAULT_CODE_POINT_LIMITstatic intLIBRARY_DEFAULT_MAX_ALIASES_FOR_COLLECTIONSstatic StringMAX_CODE_POINT_LIMIT_PROPERTYstatic StringMAX_MAX_ALIASES_PROPERTY-
Fields inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
text
-
-
Constructor Summary
Constructors Constructor Description ReadYamlStep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCodePointLimit()static intgetDefaultCodePointLimit()static intgetDefaultMaxAliasesForCollections()intgetMaxAliasesForCollections()static intgetMaxCodePointLimit()static intgetMaxMaxAliasesForCollections()voidsetCodePointLimit(int codePointLimit)static intsetDefaultCodePointLimit(int defaultCodePointLimit)Setter with an added check to ensure the default does not exceed the max value.static intsetDefaultMaxAliasesForCollections(int defaultMaxAliasesForCollections)Setter with an added check to ensure the default does not exceed the max value.voidsetMaxAliasesForCollections(int maxAliasesForCollections)static intsetMaxMaxAliasesForCollections(int maxMaxAliasesForCollections)Setter with an added check to ensure the default does not exceed the hardcoded max value.org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)-
Methods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStep
getText, setText
-
Methods inherited from class org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileStep
getFile, setFile
-
-
-
-
Field Detail
-
LIBRARY_DEFAULT_CODE_POINT_LIMIT
public static final int LIBRARY_DEFAULT_CODE_POINT_LIMIT
-
MAX_CODE_POINT_LIMIT_PROPERTY
public static final String MAX_CODE_POINT_LIMIT_PROPERTY
-
DEFAULT_CODE_POINT_LIMIT_PROPERTY
public static final String DEFAULT_CODE_POINT_LIMIT_PROPERTY
-
HARDCODED_CEILING_MAX_ALIASES_FOR_COLLECTIONS
public static final int HARDCODED_CEILING_MAX_ALIASES_FOR_COLLECTIONS
- See Also:
- Constant Field Values
-
LIBRARY_DEFAULT_MAX_ALIASES_FOR_COLLECTIONS
public static final int LIBRARY_DEFAULT_MAX_ALIASES_FOR_COLLECTIONS
-
MAX_MAX_ALIASES_PROPERTY
public static final String MAX_MAX_ALIASES_PROPERTY
-
DEFAULT_MAX_ALIASES_PROPERTY
public static final String DEFAULT_MAX_ALIASES_PROPERTY
-
-
Method Detail
-
getMaxCodePointLimit
public static int getMaxCodePointLimit()
-
setDefaultCodePointLimit
public static int setDefaultCodePointLimit(int defaultCodePointLimit)
Setter with an added check to ensure the default does not exceed the max value.- Parameters:
defaultCodePointLimit- the default value to set.- Returns:
- the actual value set after checking the max allowed.
-
getDefaultCodePointLimit
public static int getDefaultCodePointLimit()
-
setMaxMaxAliasesForCollections
public static int setMaxMaxAliasesForCollections(int maxMaxAliasesForCollections)
Setter with an added check to ensure the default does not exceed the hardcoded max value. TODO: decide if we want to add a message here before failing back.- Parameters:
maxMaxAliasesForCollections- maximum allowed aliases to be set.- Returns:
- the resulting value after checking the ceiling.
-
getMaxMaxAliasesForCollections
public static int getMaxMaxAliasesForCollections()
-
setDefaultMaxAliasesForCollections
public static int setDefaultMaxAliasesForCollections(int defaultMaxAliasesForCollections)
Setter with an added check to ensure the default does not exceed the max value.- Parameters:
defaultMaxAliasesForCollections- the default value to set.- Returns:
- the actual value set after checking the max allowed.
-
getDefaultMaxAliasesForCollections
public static int getDefaultMaxAliasesForCollections()
-
getCodePointLimit
public int getCodePointLimit()
-
setCodePointLimit
@DataBoundSetter public void setCodePointLimit(int codePointLimit)
-
getMaxAliasesForCollections
public int getMaxAliasesForCollections()
-
setMaxAliasesForCollections
@DataBoundSetter public void setMaxAliasesForCollections(int maxAliasesForCollections)
-
-