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

Wrong timestamp retrieved from git ChangeSet

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: