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

Show full date and time in pipeline view

    Details

    • Similar Issues:

      Description

      Currently when each stage of a pipeline is ran, the time it started shows as '14 hours ago' or '4 days ago' for example.

      It would be really useful to actually show the date and time the stage ran. E.g. Oct 2 2018 17:35

      Supported as a configurable option, thus not changing the current default behavior.

        Attachments

          Activity

          Hide
          tommysdk Tommy Tynjä added a comment -

          Craig Webb it would be quite trivial to support this. However, the preferred way would probably be to support this as a configuration option on the view so those users who wants this behavior could override the default (which shows relative times).

          Would something like this be sufficient (see attachment)? An open question is whether to account for time zone offsets.

          Show
          tommysdk Tommy Tynjä added a comment - Craig Webb it would be quite trivial to support this. However, the preferred way would probably be to support this as a configuration option on the view so those users who wants this behavior could override the default (which shows relative times). Would something like this be sufficient (see attachment)? An open question is whether to account for time zone offsets.
          Hide
          tommysdk Tommy Tynjä added a comment -

          The screenshot above is essentially just a one-line modification:
          https://github.com/Diabol/delivery-pipeline-plugin/blob/ec00b37ab512b647c008bd930158e55d3e8e3d58/src/main/webapp/pipe.js#L558
          ... as:
          return date !== null ? moment(date, 'YYYY-MM-DDTHH:mm:ss').format('YYYY-MM-DD HH:mm:ss') : '';

          Show
          tommysdk Tommy Tynjä added a comment - The screenshot above is essentially just a one-line modification: https://github.com/Diabol/delivery-pipeline-plugin/blob/ec00b37ab512b647c008bd930158e55d3e8e3d58/src/main/webapp/pipe.js#L558 ... as: return date !== null ? moment(date, 'YYYY-MM-DDTHH:mm:ss').format('YYYY-MM-DD HH:mm:ss') : '';
          Hide
          jellybean Craig Webb added a comment -

          Hi Tommy, that looks perfect. Thanks for looking into this.

          Show
          jellybean Craig Webb added a comment - Hi Tommy, that looks perfect. Thanks for looking into this.
          Hide
          tommysdk Tommy Tynjä added a comment - - edited

          Proposed solution (with some additional refactorings): https://github.com/Diabol/delivery-pipeline-plugin/pull/295

          Adding absolute dates and times as a configurable option on the pipeline views (preserving the current relative dates and times as the default).

          Show
          tommysdk Tommy Tynjä added a comment - - edited Proposed solution (with some additional refactorings): https://github.com/Diabol/delivery-pipeline-plugin/pull/295 Adding absolute dates and times as a configurable option on the pipeline views (preserving the current relative dates and times as the default).
          Hide
          tommysdk Tommy Tynjä added a comment -

          Released in Delivery Pipeline plugin 1.3.2.

          Show
          tommysdk Tommy Tynjä added a comment - Released in Delivery Pipeline plugin 1.3.2.
          Hide
          jellybean Craig Webb added a comment -

          Just updated the delivery pipeline to 1.3.2 and this fix is working great. Thanks Tommy.

          Show
          jellybean Craig Webb added a comment - Just updated the delivery pipeline to 1.3.2 and this fix is working great. Thanks Tommy.
          Hide
          tommysdk Tommy Tynjä added a comment -

          Craig Webb thanks for already trying it out and giving positive feedback about it. Glad it works great for you!

          Show
          tommysdk Tommy Tynjä added a comment - Craig Webb thanks for already trying it out and giving positive feedback about it. Glad it works great for you!

            People

            • Assignee:
              tommysdk Tommy Tynjä
              Reporter:
              jellybean Craig Webb
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: