Enum Class PlatformStepCode
java.lang.Object
java.lang.Enum<PlatformStepCode>
fr.paris.lutece.plugins.releaser.business.platform.PlatformStepCode
- All Implemented Interfaces:
Serializable,Comparable<PlatformStepCode>,Constable
The five steps of a platform release and their fixed behaviour. What may vary (repository URL, label) lives in
PlatformStepDefinition.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere the components of a step are read in the aggregate pom.static enumWhich Jenkins job executes the step.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStep 3 : lutece-core and its libraries.Step 1 : lutece-global-pom and its build tools.Step 4 : the plugins of lutece-platform, driven by the lutece.*.version properties, then the export.Step 5 : the starters and the BOM of lutece-platform, through the existing release pipeline of the monorepo.Step 2 : lutece-site-pom, parent and technical components updated from step 1. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformStepCodefromStepNumber(int nStepNumber) Returns the code of a step number.Returns the component source.Returns the executor.static intReturns the number of steps.intReturns the step number.booleanTells whether the step releases its aggregate.booleanTells whether the aggregate follows the lutece-core branch of its core version.booleanTells whether the aggregate can only be released as a stable version.static PlatformStepCodeReturns the enum constant of this class with the specified name.static PlatformStepCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GLOBAL_POM
Step 1 : lutece-global-pom and its build tools. Stable only. -
SITE_POM
Step 2 : lutece-site-pom, parent and technical components updated from step 1. Stable only. -
CORE
Step 3 : lutece-core and its libraries. -
PLATFORM_PLUGINS
Step 4 : the plugins of lutece-platform, driven by the lutece.*.version properties, then the export. -
PLATFORM_STARTERS
Step 5 : the starters and the BOM of lutece-platform, through the existing release pipeline of the monorepo.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getStepNumber
public int getStepNumber()Returns the step number.- Returns:
- the step number (1..5)
-
getComponentSource
Returns the component source.- Returns:
- the component source
-
isStableOnly
public boolean isStableOnly()Tells whether the aggregate can only be released as a stable version.- Returns:
- true for global-pom and site-pom
-
isCoreLineBranch
public boolean isCoreLineBranch()Tells whether the aggregate follows the lutece-core branch of its core version.- Returns:
- true for global-pom, site-pom and core
-
isAggregateReleased
public boolean isAggregateReleased()Tells whether the step releases its aggregate. The plugins step only updates the version properties of the lutece-platform POM, the monorepo itself is released by the last step.- Returns:
- false for the plugins step
-
getExecutor
Returns the executor.- Returns:
- the executor
-
getStepCount
public static int getStepCount()Returns the number of steps.- Returns:
- the number of steps
-
fromStepNumber
Returns the code of a step number.- Parameters:
nStepNumber- the step number- Returns:
- the code, or null if the number is out of range
-