Class JenkinsHtmlParser

java.lang.Object
de.oktoflow.platform.cmdTools.JenkinsHtmlParser

public class JenkinsHtmlParser extends Object
Parses Jenkins overview pages, in particular tasks and related build id and build time.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • JenkinsHtmlParser

      public JenkinsHtmlParser()
  • Method Details

    • parseUnit

      private static JenkinsHtmlParser.ParseResult parseUnit(String text, String... units)
      Parses a (time) unit.
      Parameters:
      text - the text to parse
      units - the available units
      Returns:
      the parse result
    • parseTime

      private static int parseTime(String text)
      Parses time.
      Parameters:
      text - the text to be parsed
      Returns:
      the time
    • main

      public static void main(String[] args) throws IOException
      Parses a Jenkins HTML page.
      Parameters:
      args - the command line arguments, first the file to be parsed, second optional the output file
      Throws:
      IOException - if the file cannot be read