Class LogParserPublisher

All Implemented Interfaces:
CapybaraPortingLayer, Control.Owner, PageArea, PostBuildStep, Step

public class LogParserPublisher extends AbstractStep implements PostBuildStep
Helperclass for configuring the logparser plugin.
Author:
Michael Engel
  • Constructor Details

    • LogParserPublisher

      public LogParserPublisher(Job parent, String path)
      Constructor. Should only be instantiated by addPublisher(...) of a job
  • Method Details

    • setMarkOnUnstableWarning

      public void setMarkOnUnstableWarning(boolean state)
      Sets the value of the checkbox for "mark on unstable warning".
      Parameters:
      state - The boolean state of the checkbox
    • setMarkOnBuildFail

      public void setMarkOnBuildFail(boolean state)
      Sets the value of the checkbox for "mark on build failed".
      Parameters:
      state - The boolean state of the checkbox
    • setShowGraphs

      public void setShowGraphs(boolean state)
      Sets the value of the checkbox for "show graph".
      Parameters:
      state - The boolean state of the checkbox
    • setRule

      public void setRule(LogParserPublisher.RuleType type, String rule)
      Sets the rule type and value for it.
      Parameters:
      type - The type of the parsing-rule (see: LogParserPublisher.RuleType)
      rule - Whole path to the rule if the type is a LogParserPublisher.RuleType.PROJECT. An already configured log-parser rule if the type is a LogParserPublisher.RuleType.GLOBAL.
    • setRule

      public void setRule(Resource resource)
      Parameters:
      resource - The Resource object of a rule file.