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
,Loadable
,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
-
Method Summary
Modifier and TypeMethodDescriptionstatic CopyArtifactConfiguration
get()
getMode()
protected boolean
static boolean
void
load()
void
protected void
Set the compatibility mode without storing to the disk.void
Set the the first load status.static void
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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
CopyArtifactConfiguration
public CopyArtifactConfiguration()ctor.
-
-
Method Details
-
load
public void load()- Specified by:
load
in interfaceLoadable
- 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 IOExceptionSet the the first load status. Use only for testing purpose.- Throws:
IOException
-
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
- Parameters:
mode
- the compatibility mode.
-
isMigrationMode
public static boolean isMigrationMode()- Returns:
true
if set to Migration mode.
-
getCategory
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
get
- Returns:
- the singleton instance.
-