-
Bug
-
Resolution: Fixed
-
Major
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.
- is related to
-
JENKINS-21906 NumberFormatException occurs when accessing the JSON api
-
- Closed
-
[JENKINS-23791] Wrong timestamp retrieved from git ChangeSet
Summary | Original: Wrong timestamp retrieved from ChangeSet | New: Wrong timestamp retrieved from git ChangeSet |
Link |
New:
This issue is related to |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Hi, I have checked code. the issue is in GitChangeSet:isoDateFormat method. git tool returns the time in seconds but java Date class requires milliseconds - so just multiply time by 1000
fix: