-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins version 2.121.1
-
-
2.344
In my job configuration, I have Do not fail build if archiving returns nothing checked under Post-build Actions > Archive the artifacts so that build still completes even if no artifacts are created (this is intentional). The help icon describes this field as such:
Normally, a build fails if archiving returns zero artifacts. This option allows the archiving process to return nothing without failing the build. Instead, the build will simply throw a warning.
In Jenkins 2.107.3 this causes the following warning to be printed to the build console:
15:30:26 Archiving artifacts
15:30:27 WARN: No artifacts found that match the file pattern "**/data/behat-failure/**/*". Configuration error?
15:30:28 WARN: java.lang.InterruptedException: no matches found within 10000
However, in Jenkins 2.121.1 the following big ugly stack trace is now printed to the build console:
12:28:36 Archiving artifacts 12:28:36 java.lang.InterruptedException: no matches found within 10000 12:28:36 at hudson.FilePath$34.hasMatch(FilePath.java:2678) 12:28:36 at hudson.FilePath$34.invoke(FilePath.java:2557) 12:28:36 at hudson.FilePath$34.invoke(FilePath.java:2547) 12:28:36 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2918) 12:28:36 Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to [redacted] 12:28:36 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) 12:28:36 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) 12:28:36 at hudson.remoting.Channel.call(Channel.java:955) 12:28:36 at hudson.FilePath.act(FilePath.java:1036) 12:28:36 at hudson.FilePath.act(FilePath.java:1025) 12:28:36 at hudson.FilePath.validateAntFileMask(FilePath.java:2547) 12:28:36 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:243) 12:28:36 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) 12:28:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) 12:28:36 at hudson.model.Build$BuildExecution.post2(Build.java:186) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) 12:28:36 at hudson.model.Run.execute(Run.java:1819) 12:28:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 12:28:36 at hudson.model.ResourceController.execute(ResourceController.java:97) 12:28:36 at hudson.model.Executor.run(Executor.java:429) 12:28:36 Caused: hudson.FilePath$TunneledInterruptedException 12:28:36 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2920) 12:28:36 at hudson.remoting.UserRequest.perform(UserRequest.java:212) 12:28:36 at hudson.remoting.UserRequest.perform(UserRequest.java:54) 12:28:36 at hudson.remoting.Request$2.run(Request.java:369) 12:28:36 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 12:28:36 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 12:28:36 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 12:28:36 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 12:28:36 at java.lang.Thread.run(Thread.java:748) 12:28:36 Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000 12:28:36 at hudson.FilePath.act(FilePath.java:1038) 12:28:36 at hudson.FilePath.act(FilePath.java:1025) 12:28:36 at hudson.FilePath.validateAntFileMask(FilePath.java:2547) 12:28:36 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:243) 12:28:36 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) 12:28:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) 12:28:36 at hudson.model.Build$BuildExecution.post2(Build.java:186) 12:28:36 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) 12:28:36 at hudson.model.Run.execute(Run.java:1819) 12:28:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 12:28:36 at hudson.model.ResourceController.execute(ResourceController.java:97) 12:28:36 at hudson.model.Executor.run(Executor.java:429) 12:28:36 No artifacts found that match the file pattern "**/data/behat-failure/**/*". Configuration error?
- duplicates
-
JENKINS-43379 WARN: java.lang.InterruptedException: no matches found within 10000
- Closed
- is caused by
-
JENKINS-47142 archiveArtifacts step failure is not displayed
- Resolved
- is related to
-
JENKINS-47142 archiveArtifacts step failure is not displayed
- Resolved
-
JENKINS-71700 Artifact archiver logs 'dangerously' looking warning, if no artifacts where found
- Resolved
- relates to
-
JENKINS-7214 FilePath.validateAntFileMask too slow for /configure
- Resolved
- links to