Package hudson.plugins.copyartifact
Class CopyArtifactConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- hudson.plugins.copyartifact.CopyArtifactConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("copyartifact") public class CopyArtifactConfiguration extends GlobalConfiguration
Provide the configuration about the compatibility mode (either production or migration)- Since:
- 1.44
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description CopyArtifactConfiguration()
ctor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyArtifactConfiguration
get()
GlobalConfigurationCategory
getCategory()
CopyArtifactCompatibilityMode
getMode()
protected boolean
isFirstLoad()
static boolean
isMigrationMode()
void
load()
void
setMode(CopyArtifactCompatibilityMode mode)
protected void
setModeWithoutSave(CopyArtifactCompatibilityMode mode)
Set the compatibility mode without storing to the disk.void
setToFirstLoad()
Set the the first load status.static void
syncToDiskForFirstLoad()
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
load
public void load()
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
syncToDiskForFirstLoad
@Initializer(after=EXTENSIONS_AUGMENTED, before=JOB_LOADED) public static void syncToDiskForFirstLoad()
-
isFirstLoad
protected boolean isFirstLoad()
- Returns:
- true if the configuration is not stored to the disk
-
setToFirstLoad
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setToFirstLoad() throws IOException
Set the the first load status. Use only for testing purpose.- Throws:
IOException
-
getMode
@NonNull public CopyArtifactCompatibilityMode getMode()
- Returns:
- the compatibility mode
-
setModeWithoutSave
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) protected void setModeWithoutSave(@NonNull CopyArtifactCompatibilityMode mode)
Set the compatibility mode without storing to the disk. Use only for testing purpose.
-
setMode
public void setMode(@NonNull CopyArtifactCompatibilityMode mode)
- Parameters:
mode
- the compatibility mode.
-
isMigrationMode
public static boolean isMigrationMode()
- Returns:
true
if set to Migration mode.
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
get
@CheckForNull public static CopyArtifactConfiguration get()
- Returns:
- the singleton instance.
-
-