Enum CopyOptions.Option

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CopyOptions.Option>
    Enclosing class:
    CopyOptions

    public static enum CopyOptions.Option
    extends java.lang.Enum<CopyOptions.Option>
    Different copy options that specifies the behaviour of the copy procedure.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CopyOptions.Option valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CopyOptions.Option[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • COPY_VCS_ROOTS

        @Deprecated
        public static final CopyOptions.Option COPY_VCS_ROOTS
        Deprecated.
        since 8.0 (always enabled)
        If this option is set VCS roots will be copied
      • SHARE_VCS_ROOTS

        @Deprecated
        public static final CopyOptions.Option SHARE_VCS_ROOTS
        Deprecated.
        since 8.0
        If this option is set VCS roots will be shared if needed, for example if build configuration is copied to another project
      • COPY_USER_ROLES

        public static final CopyOptions.Option COPY_USER_ROLES
        If set users and groups roles will be copied (applicable only when a project is copied)
      • COPY_USER_NOTIFICATION_RULES

        public static final CopyOptions.Option COPY_USER_NOTIFICATION_RULES
        If set users and groups notification rules will be copied (applies to build configurations or projects)
      • COPY_AGENT_POOL_ASSOCIATIONS

        public static final CopyOptions.Option COPY_AGENT_POOL_ASSOCIATIONS
        If set agent pool associations will be copied (applies to copy project only)
      • COPY_AGENT_RESTRICTIONS

        public static final CopyOptions.Option COPY_AGENT_RESTRICTIONS
        If set agent restrictions will be copied (applies to build configurations or projects)
      • COPY_PROJECT_TEMPLATES

        @Deprecated
        public static final CopyOptions.Option COPY_PROJECT_TEMPLATES
        Deprecated.
        not used since 8.0
        If set project templates will be copied when a project copy is created (applies to copy project only)
      • COPY_MUTED_TESTS

        public static final CopyOptions.Option COPY_MUTED_TESTS
        If set project muted tests will be copied to a project copy
      • COPY_BUILD_COUNTERS

        public static final CopyOptions.Option COPY_BUILD_COUNTERS
        Copy build configurations build counters
        Since:
        2018.1
    • Method Detail

      • values

        public static CopyOptions.Option[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CopyOptions.Option c : CopyOptions.Option.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CopyOptions.Option valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null