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

Details

    Description

      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")

      Attachments

        Activity

          dinesh_gioe Dinesh Reddy created issue -
          stevengbrown Steven G Brown made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: