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

public enum PlatformStepCode extends Enum<PlatformStepCode>
The five steps of a platform release and their fixed behaviour. What may vary (repository URL, label) lives in PlatformStepDefinition.
  • Enum Constant Details

    • GLOBAL_POM

      public static final PlatformStepCode GLOBAL_POM
      Step 1 : lutece-global-pom and its build tools. Stable only.
    • SITE_POM

      public static final PlatformStepCode SITE_POM
      Step 2 : lutece-site-pom, parent and technical components updated from step 1. Stable only.
    • CORE

      public static final PlatformStepCode CORE
      Step 3 : lutece-core and its libraries.
    • PLATFORM_PLUGINS

      public static final PlatformStepCode PLATFORM_PLUGINS
      Step 4 : the plugins of lutece-platform, driven by the lutece.*.version properties, then the export.
    • PLATFORM_STARTERS

      public static final PlatformStepCode PLATFORM_STARTERS
      Step 5 : the starters and the BOM of lutece-platform, through the existing release pipeline of the monorepo.
  • Method Details

    • values

      public static PlatformStepCode[] 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

      public static PlatformStepCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getStepNumber

      public int getStepNumber()
      Returns the step number.
      Returns:
      the step number (1..5)
    • getComponentSource

      public PlatformStepCode.ComponentSource 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

      public PlatformStepCode.Executor getExecutor()
      Returns the executor.
      Returns:
      the executor
    • getStepCount

      public static int getStepCount()
      Returns the number of steps.
      Returns:
      the number of steps
    • fromStepNumber

      public static PlatformStepCode fromStepNumber(int nStepNumber)
      Returns the code of a step number.
      Parameters:
      nStepNumber - the step number
      Returns:
      the code, or null if the number is out of range