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

Wrong timestamp retrieved from git ChangeSet

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
    • Similar Issues:

      Description

      Using the following groovy code:

      def thr = Thread.currentThread();
      def currentBuild = thr?.executable;
      def changes = currentBuild.getChangeSet();
      changes.getItems().each {
      	ChangeLogSet.Entry lastChange = (ChangeLogSet.Entry)it;
          lastChange.getTimestamp();
      }
      

      Produces a wrong timestamp (0).
      Reverting to git plugin 2.0.1 fixes the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                mooshben Moosh Ben
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: