Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51106

Empty BufferedReader is returned if we use Java API of Timestamper plug-in without using appendLog param

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • timestamper-plugin
    • None

      Based on the given documentation, I have tried to use Timestamper Java API to access the build log including the plain timestamps. 

      BufferedReader reader = TimestamperAPI.get().read(currentBuild,"time=HH:mm:ss")

      But, I am receiving an empty buffer.

      After checking the out timestamper plug-in code and debugging the code, I understood that we need to pass "appendLog" param also to get the proper BufferedReader. So the modified code I am using right now is something like below.

      BufferedReader reader = TimestamperAPI.get().read(currentBuild,"time=HH:mm:ss&appendLog")

            stevengbrown Steven G Brown
            dinesh_gioe Dinesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: