Class GlobalBuildStatsPlugin

java.lang.Object
hudson.Plugin
hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
All Implemented Interfaces:
Saveable, Loadable, org.kohsuke.stapler.StaplerProxy

@ExportedBean public class GlobalBuildStatsPlugin extends Plugin
Entry point of the global build stats plugin
Author:
fcamblor
  • Constructor Details

    • GlobalBuildStatsPlugin

      public GlobalBuildStatsPlugin()
  • Method Details

    • getApi

      public Api getApi()
      Expose GlobalBuildStatsPlugin to the remote API : - Either all build stat configuration data - OR (if buildStatConfigId http parameter is given) chart data
    • load

      public void load() throws IOException
      Highered visibility of load method
      Specified by:
      load in interface Loadable
      Overrides:
      load in class Plugin
      Throws:
      IOException
    • getConfigXmlFile

      public File getConfigXmlFile()
    • getPluginBusiness

      public static GlobalBuildStatsBusiness getPluginBusiness()
    • getInstance

      public static GlobalBuildStatsPlugin getInstance()
    • doCheckJobFilter

      public FormValidation doCheckJobFilter(@QueryParameter String value)
    • doCheckFailuresShown

      public FormValidation doCheckFailuresShown(@QueryParameter String value)
    • doCheckUnstablesShown

      public FormValidation doCheckUnstablesShown(@QueryParameter String value)
    • doCheckAbortedShown

      public FormValidation doCheckAbortedShown(@QueryParameter String value)
    • doCheckNotBuildsShown

      public FormValidation doCheckNotBuildsShown(@QueryParameter String value)
    • doCheckSuccessShown

      public FormValidation doCheckSuccessShown(@QueryParameter String value)
    • doCheckHistoricScale

      public FormValidation doCheckHistoricScale(@QueryParameter String value)
    • doCheckHistoricLength

      public FormValidation doCheckHistoricLength(@QueryParameter String value)
    • doCheckBuildStatHeight

      public FormValidation doCheckBuildStatHeight(@QueryParameter String value)
    • doCheckBuildStatWidth

      public FormValidation doCheckBuildStatWidth(@QueryParameter String value)
    • doCheckTitle

      public FormValidation doCheckTitle(@QueryParameter String value)
    • doCheckYAxisChartType

      public FormValidation doCheckYAxisChartType(@QueryParameter String value)
    • doRecordBuildInfos

      public org.kohsuke.stapler.HttpResponse doRecordBuildInfos() throws IOException
      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

      protected static void respondAjaxOk(org.kohsuke.stapler.StaplerResponse res) throws IOException
      Throws:
      IOException
    • escapeAntiSlashes

      public 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 !)
      Parameters:
      value - Parameter which should be escaped
      Returns:
      value where "\" are escaped
    • getFieldFilterALL

      public static String 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

      public static String 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

      public BuildStatConfiguration[] getBuildStatConfigsArrayed()
    • getBuildStatConfigs

      @Exported public List<BuildStatConfiguration> getBuildStatConfigs()
    • getRequiredPermission

      public Permission getRequiredPermission()
    • getHistoricScales

      public HistoricScale[] getHistoricScales()
    • getYAxisChartTypes

      public YAxisChartType[] getYAxisChartTypes()
    • getJobBuildResults

      public List<JobBuildResult> getJobBuildResults()
      Returns:
      An unmodifiable list of job build results
    • getJobBuildResultsSharder

      public JobBuildResultSharder getJobBuildResultsSharder()
    • reloadJobBuildResults

      public void reloadJobBuildResults(List<JobBuildResult> results)
    • getAvailableRetentionStrategies

      public List<RetentionStrategy> getAvailableRetentionStrategies()
    • isStrategySelected

      public boolean isStrategySelected(String strategyId)
    • setRetentionStrategies

      public void setRetentionStrategies(List<RetentionStrategy> retentionStrategies)
    • getRetentionStrategies

      public List<RetentionStrategy> getRetentionStrategies()