Class BundleNameInstanceTypeProvider.DEFAULT_STRATEGY

java.lang.Object
com.cloudbees.jenkins.support.BundleNameInstanceTypeProvider
com.cloudbees.jenkins.support.BundleNameInstanceTypeProvider.DEFAULT_STRATEGY
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
BundleNameInstanceTypeProvider

@Extension(ordinal=-2.147483648E9) public static final class BundleNameInstanceTypeProvider.DEFAULT_STRATEGY extends BundleNameInstanceTypeProvider
  • Constructor Details

    • DEFAULT_STRATEGY

      public DEFAULT_STRATEGY()
  • Method Details

    • getInstanceType

      @NonNull public String getInstanceType()
      Description copied from class: BundleNameInstanceTypeProvider
      Returns the non-null and non empty (default value is empty) instance type to be used for generated support bundle names.

      Aims to provide informational data about the generated bundles.

      Will be used for file name generation, so avoid funky characters. Please ideally stay in [a-zA-Z-_.]. Also consider the file name length, you probably want to be defensive and not return crazily long strings. Something below 20 characters or so might sound reasonable.

      Specified by:
      getInstanceType in class BundleNameInstanceTypeProvider
      Returns:
      the instance type specification to be used for generated support bundles.