Class ThinBackupPluginImpl
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
-
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 TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckBackupPath
(String value) doCheckDiffBackupSchedule
(String schedule) doCheckExcludedFilesRegex
(String regex) doCheckForceQuietModeTimeout
(String timeout) doCheckFullBackupSchedule
(String schedule) doCheckWaitForIdle
(String waitForIdle) static ThinBackupPluginImpl
get()
Get the backup path as entered by the user.int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setBackupAdditionalFiles
(boolean backupAdditionalFiles) void
setBackupAdditionalFilesRegex
(String backupAdditionalFilesRegex) void
setBackupBuildArchive
(boolean backupBuildArchive) void
setBackupBuildResults
(boolean backupBuildResults) void
setBackupBuildsToKeepOnly
(boolean backupBuildsToKeepOnly) void
setBackupConfigHistory
(boolean backupConfigHistory) void
setBackupNextBuildNumber
(boolean backupNextBuildNumber) void
setBackupPath
(String backupPath) void
setBackupPluginArchives
(boolean backupPluginArchives) void
setBackupUserContents
(boolean backupUserContents) void
setCleanupDiff
(boolean cleanupDiff) void
setDiffBackupSchedule
(String diffBackupSchedule) void
setExcludedFilesRegex
(String excludedFilesRegex) void
setFailFast
(boolean failFast) void
setForceQuietModeTimeout
(int forceQuietModeTimeout) void
setFullBackupSchedule
(String fullBackupSchedule) void
setMoveOldBackupsToZipFile
(boolean moveOldBackupsToZipFile) void
setNrMaxStoredFull
(int nrMaxStoredFull) void
setWaitForIdle
(boolean waitForIdle) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ThinBackupPluginImpl
@DataBoundConstructor public ThinBackupPluginImpl()
-
-
Method Details
-
get
-
getJenkinsHome
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
setFullBackupSchedule
-
getFullBackupSchedule
-
setDiffBackupSchedule
-
getDiffBackupSchedule
-
getForceQuietModeTimeout
public int getForceQuietModeTimeout() -
setForceQuietModeTimeout
@DataBoundSetter public void setForceQuietModeTimeout(int forceQuietModeTimeout) -
setBackupPath
-
getBackupPath
Get the backup path as entered by the user. May contain traces of environment variables.If you need a path that can be used as is (env. vars expanded), please use @link{getExpandedBackupPath}.
- Returns:
- the backup path as stored in the settings page.
-
getExpandedBackupPath
- Returns:
- the backup path with possibly contained environment variables expanded.
-
setNrMaxStoredFull
@DataBoundSetter public void setNrMaxStoredFull(int nrMaxStoredFull) -
getNrMaxStoredFull
public int getNrMaxStoredFull() -
setCleanupDiff
@DataBoundSetter public void setCleanupDiff(boolean cleanupDiff) -
isCleanupDiff
public boolean isCleanupDiff() -
setMoveOldBackupsToZipFile
@DataBoundSetter public void setMoveOldBackupsToZipFile(boolean moveOldBackupsToZipFile) -
isMoveOldBackupsToZipFile
public boolean isMoveOldBackupsToZipFile() -
setBackupBuildResults
@DataBoundSetter public void setBackupBuildResults(boolean backupBuildResults) -
isBackupBuildResults
public boolean isBackupBuildResults() -
setBackupBuildArchive
@DataBoundSetter public void setBackupBuildArchive(boolean backupBuildArchive) -
isBackupBuildArchive
public boolean isBackupBuildArchive() -
setBackupBuildsToKeepOnly
@DataBoundSetter public void setBackupBuildsToKeepOnly(boolean backupBuildsToKeepOnly) -
isBackupBuildsToKeepOnly
public boolean isBackupBuildsToKeepOnly() -
setBackupNextBuildNumber
@DataBoundSetter public void setBackupNextBuildNumber(boolean backupNextBuildNumber) -
isBackupNextBuildNumber
public boolean isBackupNextBuildNumber() -
setExcludedFilesRegex
-
isBackupUserContents
public boolean isBackupUserContents() -
setBackupUserContents
@DataBoundSetter public void setBackupUserContents(boolean backupUserContents) -
getExcludedFilesRegex
-
setBackupPluginArchives
@DataBoundSetter public void setBackupPluginArchives(boolean backupPluginArchives) -
isBackupPluginArchives
public boolean isBackupPluginArchives() -
setBackupAdditionalFiles
@DataBoundSetter public void setBackupAdditionalFiles(boolean backupAdditionalFiles) -
isBackupAdditionalFiles
public boolean isBackupAdditionalFiles() -
setBackupAdditionalFilesRegex
-
getBackupAdditionalFilesRegex
-
setWaitForIdle
@DataBoundSetter public void setWaitForIdle(boolean waitForIdle) -
isWaitForIdle
public boolean isWaitForIdle() -
isBackupConfigHistory
public boolean isBackupConfigHistory() -
setBackupConfigHistory
@DataBoundSetter public void setBackupConfigHistory(boolean backupConfigHistory) -
isFailFast
public boolean isFailFast() -
setFailFast
@DataBoundSetter public void setFailFast(boolean failFast) -
doCheckBackupPath
-
doCheckFullBackupSchedule
-
doCheckDiffBackupSchedule
-
doCheckExcludedFilesRegex
-
doCheckBackupAdditionalFilesRegex
@POST public FormValidation doCheckBackupAdditionalFilesRegex(@QueryParameter("value") String regex) -
doCheckWaitForIdle
-
doCheckForceQuietModeTimeout
-