Issue
all,
The jenkins threw an exception when archiving artifacts after finished compiling.
Here goes the error message:
Archiving artifacts
12:35:16 ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception
12:35:16 java.lang.IllegalArgumentException: Negative time
12:35:16 at java.io.File.setLastModified(File.java:1344)
12:35:16 at hudson.FilePath.readFromTar(FilePath.java:2080)
12:35:16 at hudson.FilePath.copyRecursiveTo(FilePath.java:2000)
12:35:16 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:57)
12:35:16 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:140)
12:35:16 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
12:35:16 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
12:35:16 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
12:35:16 at hu2:35:16 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
12:35:16 at hudson.model.Run.execute(Run.java:1703)
12:35:16 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
12:35:16 at hudson.model.ResourceController.execute(ResourceController.java:88)
12:35:16 at hudson.model.Executor.run(Executor.java:231) dson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1030)
1
Thanks
Steven
Solution
This can be caused by having an artifact larger than 8GB.
See Jenkins bug report JENKINS-10629.
Answered By - user9876
Answer Checked By - Senaida (JavaFixing Volunteer)