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

Add api call for current jenkins time

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • timestamper-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: