public class JobConfigHistory
extends hudson.Plugin
| Constructor and Description |
|---|
JobConfigHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckExcludePattern(String value)
Validates the user entry for the regular expression of system file names
to exclude from saving.
|
hudson.util.FormValidation |
doCheckMaxDaysToKeepEntries(String value)
Validates the user entry for the maximum number of days to keep history items.
|
hudson.util.FormValidation |
doCheckMaxEntriesPerPage(String value)
Validates the user entry for the maximum number of history items to show per site.
|
hudson.util.FormValidation |
doCheckMaxHistoryEntries(String value)
Validates the user entry for the maximum number of history items to keep.
|
protected File |
getConfigFile(File historyDir) |
protected File |
getConfiguredHistoryRootDir()
Returns the File object representing the configured root history directory.
|
String |
getDefaultExcludePattern()
Used by the configuration page.
|
String |
getDefaultRootDir() |
String |
getExcludePattern() |
protected Pattern |
getExcludeRegexpPattern()
Used for testing to verify invalid pattern not loaded.
|
String |
getHistoryRootDir() |
String |
getMaxDaysToKeepEntries() |
String |
getMaxEntriesPerPage() |
String |
getMaxHistoryEntries() |
boolean |
getSaveItemGroupConfiguration()
Deprecated.
since version 2.9
|
boolean |
getSaveModuleConfiguration() |
String |
getShowBuildBadges() |
boolean |
getSkipDuplicateHistory() |
protected void |
setMaxEntriesPerPage(String maxEntryInput)
Set the maximum number of history entries to show per site.
|
protected void |
setMaxHistoryEntries(String maxEntryInput)
Set the maximum number of history entries per item.
|
void |
setShowBuildBadges(String showBadges)
Used for testing only.
|
void |
start() |
public void start()
throws Exception
start in class hudson.PluginExceptionpublic void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
configure in class hudson.PluginIOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic String getHistoryRootDir()
public String getDefaultRootDir()
public String getMaxHistoryEntries()
protected void setMaxHistoryEntries(String maxEntryInput)
maxEntryInput - The maximum number of history entries to keeppublic String getMaxEntriesPerPage()
protected void setMaxEntriesPerPage(String maxEntryInput)
maxEntryInput - The maximum number of history entries to show per sitepublic String getMaxDaysToKeepEntries()
@Deprecated public boolean getSaveItemGroupConfiguration()
public boolean getSkipDuplicateHistory()
public String getExcludePattern()
public String getDefaultExcludePattern()
public boolean getSaveModuleConfiguration()
public String getShowBuildBadges()
public void setShowBuildBadges(String showBadges)
showBadges - Never, always, userWithConfigPermission or adminUser.protected Pattern getExcludeRegexpPattern()
protected File getConfiguredHistoryRootDir()
protected File getConfigFile(File historyDir)
historyDir - The history directory to look under.FileHistoryDao.getConfigFile(java.io.File).public hudson.util.FormValidation doCheckMaxHistoryEntries(@QueryParameter
String value)
value - The form input entered by the user.public hudson.util.FormValidation doCheckMaxEntriesPerPage(@QueryParameter
String value)
value - The form input entered by the user.public hudson.util.FormValidation doCheckMaxDaysToKeepEntries(@QueryParameter
String value)
value - The form input entered by the user.public hudson.util.FormValidation doCheckExcludePattern(@QueryParameter
String value)
value - The form input entered by the user.Copyright © 2004–2016. All rights reserved.