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

Add api call for current jenkins time

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Please provide a way to retrieve the current Jenkins time, ideally in the same format as the job start timestamp.

      System time on client machines calling the api will invariably be out of synch with the Jenkins server time, so it would be very helpful to have a way to understand exactly what time the Jenkins server thinks it is.

      Also, the api call for timestamps or time elapsed returns a lot of data; I'm only interested in the last line of that data, so I would like to be able to retrieve just a single value representing the current time at the moment of an api call.

      As a bonus, it would be nice to also have access to a single value representing total time elapsed since job start.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevengbrown Steven G Brown
                Reporter:
                ellemenno Peter Gerstmann
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: