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
Nested ClassesModifier and TypeClassDescriptionstatic classHack allowing to either generate plugin informations (build stat configurations) OR generate chart data for a given buildStatConfigId request parameterstatic classstatic classLet's add a link in the administration panel linking to the global build stats pagestatic classAt 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAddBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoBuildHistory(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 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) voiddoCreateChart(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoCreateChartMap(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoDeleteConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoMoveDownConf(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoMoveUpConf(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) org.kohsuke.stapler.HttpResponsevoiddoShowChart(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoUpdateBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) voiddoUpdateRetentionStrategies(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) static StringescapeAntiSlashes(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()ExposeGlobalBuildStatsPluginto the remote API : - Either all build stat configuration data - OR (if buildStatConfigId http parameter is given) chart datastatic StringFor 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 StringFor 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 GlobalBuildStatsPluginstatic GlobalBuildStatsBusinessstatic PermissionbooleanisStrategySelected(String strategyId) voidload()Highered visibility of load methodvoidreloadJobBuildResults(List<JobBuildResult> results) protected static voidrespondAjaxOk(org.kohsuke.stapler.StaplerResponse2 res) voidsetRetentionStrategies(List<RetentionStrategy> retentionStrategies) Methods inherited from class hudson.Plugin
configure, configure, configure, doDynamic, doDynamic, getConfigXml, getTarget, getWrapper, postInitialize, save, setServletContext, start, stop
-
Constructor Details
-
GlobalBuildStatsPlugin
public GlobalBuildStatsPlugin()
-
-
Method Details
-
getApi
ExposeGlobalBuildStatsPluginto 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:
loadin interfaceLoadable- Overrides:
loadin 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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doCreateChart
public void doCreateChart(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doCreateChartMap
public void doCreateChartMap(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doBuildHistory
public void doBuildHistory(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doUpdateBuildStatConfiguration
public void doUpdateBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doAddBuildStatConfiguration
public void doAddBuildStatConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doDeleteConfiguration
public void doDeleteConfiguration(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doMoveUpConf
public void doMoveUpConf(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doMoveDownConf
public void doMoveDownConf(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doUpdateRetentionStrategies
public void doUpdateRetentionStrategies(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
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
-