mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
detect clock sync and report an error.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4114 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f4157efa20
commit
e54ac6aa79
1 file changed
+7
@@ -78,6 +78,13 @@ public final class TestResult extends MetaTabulatedResult {
|
||||
}
|
||||
|
||||
if(!parsed) {
|
||||
long localTime = System.currentTimeMillis();
|
||||
if(localTime < buildTime)
|
||||
throw new AbortException(
|
||||
"Clock on this slave is out of sync with the master, and therefore I" +
|
||||
"can't figure out what test results are new and what are old." +
|
||||
"Please keep the slave clock in sync with the master.");
|
||||
|
||||
File f = new File(baseDir,includedFiles[0]);
|
||||
throw new AbortException(
|
||||
String.format(
|
||||
|
||||
Reference in new issue
Block a user