due to Map failed at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:914) at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:567) at hudson.Util.copyFile(Util.java:988) at hudson.FilePath$42$1.visit(FilePath.java:2141) at hudson.util.DirScanner.scanSingle(DirScanner.java:49) at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2778) at hudson.FilePath$42.invoke(FilePath.java:2135) at hudson.FilePath$42.invoke(FilePath.java:2128) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.FilePath.copyRecursiveTo(FilePath.java:2128) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1769) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:888) at sun.nio.ch.FileChannelImpl.transferFromFileChannel(FileChannelImpl.java:591) at sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:665) at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:532) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559) at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:899) ... 22 more Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:885) ... 27 more Build step 'Archive the artifacts' marked build as failure Email was triggered for: Failure - Any Sending email for trigger: Failure - Any