Class AuditTrailPlugin

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Symbol("audit-trail") @Extension public class AuditTrailPlugin extends GlobalConfiguration
Keep audit trail of particular Jenkins operations, such as configuring jobs.
Author:
Alan Harder, Pierre Beitz
  • Constructor Details

    • AuditTrailPlugin

      public AuditTrailPlugin()
  • Method Details

    • getPattern

      public String getPattern()
    • getLogBuildCause

      @Deprecated public boolean getLogBuildCause()
      Deprecated.
    • shouldLogBuildCause

      public boolean shouldLogBuildCause()
    • getLogCredentialsUsage

      public boolean getLogCredentialsUsage()
    • shouldLogCredentialsUsage

      public boolean shouldLogCredentialsUsage()
    • shouldDisplayUserName

      public boolean shouldDisplayUserName()
    • getDisplayUserName

      public boolean getDisplayUserName()
    • getLoggers

      public List<AuditLogger> getLoggers()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
      Overrides:
      configure in class GlobalConfiguration
    • setPattern

      @DataBoundSetter public void setPattern(String pattern)
    • setLogBuildCause

      @DataBoundSetter public void setLogBuildCause(boolean logBuildCause)
    • setLogCredentialsUsage

      @DataBoundSetter public void setLogCredentialsUsage(boolean logCredentialsUsage)
    • setDisplayUserName

      @DataBoundSetter public void setDisplayUserName(boolean displayUserName)
    • getLoggerDescriptors

      Deprecated.
      as of 2.6
    • setLoggers

      @DataBoundSetter public void setLoggers(List<AuditLogger> loggers)
    • onFinalized

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Deprecated public void onFinalized(Run run)
      Deprecated.
      as of 2.6
    • onFinalized

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Deprecated public void onFinalized(AbstractBuild build)
      Deprecated.
      as of 2.6
    • doCheckPattern

      public FormValidation doCheckPattern(@QueryParameter String value) throws IOException, javax.servlet.ServletException
      Validate regular expression syntax.
      Throws:
      IOException
      javax.servlet.ServletException
    • getConfigFile

      protected XmlFile getConfigFile()
      Overrides:
      getConfigFile in class Descriptor<GlobalConfiguration>