The problem was that the NFS where Jenkins resides wasn't using NTP (and was about 30 minutes behind) where the rest of the system was using it. So, that's why the date command was returning the correct timestamp but the files in the target directory where created with the wrong timestamp.
Read full article from unit testing - Incorrect timestamp on the target directory when the Jenkins build is triggered by Gerrit - Stack Overflow
No comments:
Post a Comment