Class GlobalBuildStatsPlugin
java.lang.Object
hudson.Plugin
hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
Entry point of the global build stats plugin
- Author:
- fcamblor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Hack allowing to either generate plugin informations (build stat configurations) OR generate chart data for a given buildStatConfigId request parameterstatic class
static class
Let's add a link in the administration panel linking to the global build stats pagestatic class
At the end of every jobs, let's gather job result informations into global build stats persisted dataNested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl
-
Field Summary
Fields inherited from class hudson.Plugin
SKIP_PERMISSION_CHECK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doAddBuildStatConfiguration
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doBuildHistory
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) doCheckAbortedShown
(String value) doCheckBuildStatHeight
(String value) doCheckBuildStatWidth
(String value) doCheckFailuresShown
(String value) doCheckHistoricLength
(String value) doCheckHistoricScale
(String value) doCheckJobFilter
(String value) doCheckNotBuildsShown
(String value) doCheckSuccessShown
(String value) doCheckTitle
(String value) doCheckUnstablesShown
(String value) doCheckYAxisChartType
(String value) void
doCreateChart
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doCreateChartMap
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doDeleteConfiguration
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doMoveDownConf
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doMoveUpConf
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) org.kohsuke.stapler.HttpResponse
void
doShowChart
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doUpdateBuildStatConfiguration
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doUpdateRetentionStrategies
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) static String
escapeAntiSlashes
(String value) Method must stay here since, for an unknown reason, in buildHistory.jelly, call to <j:invokeStatic> doesn't work (and <j:invoke> work fine !)getApi()
ExposeGlobalBuildStatsPlugin
to the remote API : - Either all build stat configuration data - OR (if buildStatConfigId http parameter is given) chart datastatic String
For some unknown reasons, <j:getStatic> doesn't work due to a classloader problem (FieldFilterFactory doesn't seem to be accessible in a static way from jelly script)static String
For some unknown reasons, <:getStatic> doesn't work due to a classloader problem (FieldFilterFactory doesn't seem to be accessible in a static way from jelly script)static GlobalBuildStatsPlugin
static GlobalBuildStatsBusiness
boolean
isStrategySelected
(String strategyId) void
load()
Highered visibility of load methodvoid
reloadJobBuildResults
(List<JobBuildResult> results) protected static void
respondAjaxOk
(org.kohsuke.stapler.StaplerResponse res) void
setRetentionStrategies
(List<RetentionStrategy> retentionStrategies) Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getTarget, getWrapper, postInitialize, save, setServletContext, start, stop
-
Constructor Details
-
GlobalBuildStatsPlugin
public GlobalBuildStatsPlugin()
-
-
Method Details
-
getApi
ExposeGlobalBuildStatsPlugin
to the remote API : - Either all build stat configuration data - OR (if buildStatConfigId http parameter is given) chart data -
load
Highered visibility of load method- Specified by:
load
in interfaceLoadable
- Overrides:
load
in classPlugin
- Throws:
IOException
-
getConfigXmlFile
-
getPluginBusiness
-
getInstance
-
doCheckJobFilter
-
doCheckFailuresShown
-
doCheckUnstablesShown
-
doCheckAbortedShown
-
doCheckNotBuildsShown
-
doCheckSuccessShown
-
doCheckHistoricScale
-
doCheckHistoricLength
-
doCheckBuildStatHeight
-
doCheckBuildStatWidth
-
doCheckTitle
-
doCheckYAxisChartType
-
doRecordBuildInfos
- Throws:
IOException
-
doShowChart
public void doShowChart(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doCreateChart
public void doCreateChart(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doCreateChartMap
public void doCreateChartMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doBuildHistory
public void doBuildHistory(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doUpdateBuildStatConfiguration
public void doUpdateBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doAddBuildStatConfiguration
public void doAddBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doDeleteConfiguration
public void doDeleteConfiguration(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doMoveUpConf
public void doMoveUpConf(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doMoveDownConf
public void doMoveDownConf(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doUpdateRetentionStrategies
public void doUpdateRetentionStrategies(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
respondAjaxOk
- Throws:
IOException
-
escapeAntiSlashes
Method must stay here since, for an unknown reason, in buildHistory.jelly, call to <j:invokeStatic> doesn't work (and <j:invoke> work fine !)- Parameters:
value
- Parameter which should be escaped- Returns:
- value where "\" are escaped
-
getFieldFilterALL
For some unknown reasons, <j:getStatic> doesn't work due to a classloader problem (FieldFilterFactory doesn't seem to be accessible in a static way from jelly script)- Returns:
- FieldFilterFactory.ALL_VALUES_FILTER_LABEL
-
getFieldFilterRegex
For some unknown reasons, <:getStatic> doesn't work due to a classloader problem (FieldFilterFactory doesn't seem to be accessible in a static way from jelly script)- Returns:
- FieldFilterFactory.REGEX_FIELD_FILTER_LABEL
-
getBuildStatConfigsArrayed
-
getBuildStatConfigs
-
getRequiredPermission
-
getHistoricScales
-
getYAxisChartTypes
-
getJobBuildResults
- Returns:
- An unmodifiable list of job build results
-
getJobBuildResultsSharder
-
reloadJobBuildResults
-
getAvailableRetentionStrategies
-
isStrategySelected
-
setRetentionStrategies
-
getRetentionStrategies
-