Enum CopyArtifactCompatibilityMode

java.lang.Object
java.lang.Enum<CopyArtifactCompatibilityMode>
hudson.plugins.copyartifact.CopyArtifactCompatibilityMode
All Implemented Interfaces:
Serializable, Comparable<CopyArtifactCompatibilityMode>

public enum CopyArtifactCompatibilityMode extends Enum<CopyArtifactCompatibilityMode>
  • Enum Constant Details

    • PRODUCTION

      public static final CopyArtifactCompatibilityMode PRODUCTION
      The production-ready mode for the permission check on the projects we want to copy the artifacts from. Once all the jobs are migrated using the MIGRATION mode, this mode could be activated to ensure better security.
    • MIGRATION

      public static final CopyArtifactCompatibilityMode MIGRATION
      Legacy behavior where the project we want to copy the artifact from is checked either at configure time or at runtime depending on who is configuring the project and if it's static or dynamic (using parameter) When a copy is done but the permission should not have been correct in PRODUCTION, an item is added to the monitor list to help the administrator to improve the current situation and allow them to use the better mode in short/mid term. This mode is NOT meant to be used in long term as it contains security defect.
      See Also:
  • Method Details

    • values

      public static CopyArtifactCompatibilityMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CopyArtifactCompatibilityMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
    • getName

      public String getName()