Fix warnings #1691
Merged
Fix warnings #1691
ci.jenkins.io / Tests / windows-17 / Build (windows-17)
failed
Feb 27, 2024 in 0s
io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.shouldCopySourcesIfMasterAgentSecurityIsActive failed
Send us feedback
Details
io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.shouldCopySourcesIfMasterAgentSecurityIsActive
Expecting actual:
"<pre><code class="language-java line-numbers match-braces">CompositeIOException: Unable to delete 'C:\Windows\TEMP\files-with-issues12975691970322198976'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
jenkins.util.io.CompositeIOException: Unable to delete 'C:\Windows\TEMP\files-with-issues12975691970322198976'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:329)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1480)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1475)
at hudson.FilePath.act(FilePath.java:1236)
at hudson.FilePath.act(FilePath.java:1219)
at hudson.FilePath.deleteRecursive(FilePath.java:1472)
at io.jenkins.plugins.analysis.core.util.AffectedFilesResolver.extractFromZip(AffectedFilesResolver.java:95)
at io.jenkins.plugins.analysis.core.util.AffectedFilesResolver.asStream(AffectedFilesResolver.java:74)
at io.jenkins.plugins.analysis.core.util.BuildFolderFacade.readFile(BuildFolderFacade.java:57)
at io.jenkins.plugins.analysis.core.model.DetailFactory.createFilteredView(DetailFactory.java:119)
at io.jenkins.plugins.analysis.core.model.DetailFactory.createTrendDetails(DetailFactory.java:94)
at io.jenkins.plugins.analysis.core.model.IssuesDetail.getDynamic(IssuesDetail.java:577)
at io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.getSourceCode(StepsOnAgentITest.java:64)
at io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.shouldCopySourcesIfMasterAgentSecurityIsActive(StepsOnAgentITest.java:57)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214)
</code><code class="language-java line-numbers highlight match-braces"> at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139)
</code><div class="analysis-warning"><table class="analysis-title"><tr><td><img src="/static/e9e44e4e/plugin/warnings-ng/icons/java.svg" class="icon-md"></td><td class="analysis-title-column"><div class="analysis-warning-title">Test Warning</div></td><td></td></tr></table></div><code class="language-java line-numbers match-braces"> at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)
at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Suppressed: java.nio.file.AccessDeniedException: C:\Windows\TEMP\files-with-issues12975691970322198976\Test.java
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(WindowsFileAttributeViews.java:242)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(WindowsFileAttributeViews.java:248)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:295)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
... 85 more
Suppressed: jenkins.util.io.CompositeIOException: Unable to remove directory C:\Windows\TEMP\files-with-issues12975691970322198976 with directory contents: [C:\Windows\TEMP\files-with-issues12975691970322198976\Test.java]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:247)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
... 85 more
Suppressed: java.nio.file.DirectoryNotEmptyException: C:\Windows\TEMP\files-with-issues12975691970322198976
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:272)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:234)
... 88 more
Suppressed: java.nio.file.DirectoryNotEmptyException: C:\Windows\TEMP\files-with-issues12975691970322198976
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:272)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
... 88 more
</code></pre>
"
to contain:
"public class Test {}"
Stack trace
java.lang.AssertionError:
Expecting actual:
"<pre><code class="language-java line-numbers match-braces">CompositeIOException: Unable to delete 'C:\Windows\TEMP\files-with-issues12975691970322198976'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
jenkins.util.io.CompositeIOException: Unable to delete 'C:\Windows\TEMP\files-with-issues12975691970322198976'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:329)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1480)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1475)
at hudson.FilePath.act(FilePath.java:1236)
at hudson.FilePath.act(FilePath.java:1219)
at hudson.FilePath.deleteRecursive(FilePath.java:1472)
at io.jenkins.plugins.analysis.core.util.AffectedFilesResolver.extractFromZip(AffectedFilesResolver.java:95)
at io.jenkins.plugins.analysis.core.util.AffectedFilesResolver.asStream(AffectedFilesResolver.java:74)
at io.jenkins.plugins.analysis.core.util.BuildFolderFacade.readFile(BuildFolderFacade.java:57)
at io.jenkins.plugins.analysis.core.model.DetailFactory.createFilteredView(DetailFactory.java:119)
at io.jenkins.plugins.analysis.core.model.DetailFactory.createTrendDetails(DetailFactory.java:94)
at io.jenkins.plugins.analysis.core.model.IssuesDetail.getDynamic(IssuesDetail.java:577)
at io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.getSourceCode(StepsOnAgentITest.java:64)
at io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.shouldCopySourcesIfMasterAgentSecurityIsActive(StepsOnAgentITest.java:57)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214)
</code><code class="language-java line-numbers highlight match-braces"> at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139)
</code><div class="analysis-warning"><table class="analysis-title"><tr><td><img src="/static/e9e44e4e/plugin/warnings-ng/icons/java.svg" class="icon-md"></td><td class="analysis-title-column"><div class="analysis-warning-title">Test Warning</div></td><td></td></tr></table></div><code class="language-java line-numbers match-braces"> at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)
at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Suppressed: java.nio.file.AccessDeniedException: C:\Windows\TEMP\files-with-issues12975691970322198976\Test.java
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(WindowsFileAttributeViews.java:242)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(WindowsFileAttributeViews.java:248)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:295)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
... 85 more
Suppressed: jenkins.util.io.CompositeIOException: Unable to remove directory C:\Windows\TEMP\files-with-issues12975691970322198976 with directory contents: [C:\Windows\TEMP\files-with-issues12975691970322198976\Test.java]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:247)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
... 85 more
Suppressed: java.nio.file.DirectoryNotEmptyException: C:\Windows\TEMP\files-with-issues12975691970322198976
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:272)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:234)
... 88 more
Suppressed: java.nio.file.DirectoryNotEmptyException: C:\Windows\TEMP\files-with-issues12975691970322198976
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:272)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
... 88 more
</code></pre>
"
to contain:
"public class Test {}"
at io.jenkins.plugins.analysis.warnings.steps.StepsOnAgentITest.shouldCopySourcesIfMasterAgentSecurityIsActive(StepsOnAgentITest.java:57)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Standard error
0.157 [id=1] INFO o.jvnet.hudson.test.WarExploder#explode: Picking up existing exploded jenkins.war at C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\jenkins-for-test
0.543 [id=1] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:50420/jenkins/
1.001 [id=34] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
2.094 [id=35] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: C:\Windows\TEMP\jenkins14895693946349343848\plugins\javax-mail-api.jpi
3.665 [id=36] WARNING hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created C:\Windows\TEMP\jenkins14895693946349343848\plugins\flexible-publish\WEB-INF\lib\classes.jar; update plugin to a version created with a newer harness
3.750 [id=36] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: C:\Windows\TEMP\jenkins14895693946349343848\plugins\matrix-auth.jpi
3.800 [id=36] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: C:\Windows\TEMP\jenkins14895693946349343848\plugins\command-launcher.jpi
3.871 [id=36] INFO hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: C:\Windows\TEMP\jenkins14895693946349343848\plugins\sshd.jpi
7.207 [id=34] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
7.231 [id=37] INFO j.b.api.BouncyCastlePlugin#start: C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h301513721963188207\plugins\bouncycastle-api\WEB-INF\optional-lib not found; for non RealJenkinsRule this is fine and can be ignored.
16.503 [id=36] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
16.520 [id=38] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
16.523 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Local Ivy config file 'jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml' appears corrupt - ignoring it and using default config instead
Error was: failed to load settings from jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
17.322 [id=33] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed GrapeHack.hack
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.getProperty(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(Unknown Source)
at org.apache.ivy.util.XMLHelper.newSAXParser(XMLHelper.java:92)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:170)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:132)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:122)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:117)
at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:154)
Caused: java.text.ParseException: failed to load settings from jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:147)
at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:415)
at org.apache.ivy.core.settings.IvySettings$load.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:100)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at java.base/java.lang.Class.newInstance(Class.java:645)
at groovy.grape.Grape.getInstance(Grape.java:121)
at org.jenkinsci.plugins.workflow.cps.global.GrapeHack.hack(GrapeHack.java:47)
Caused: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
Caused: java.lang.Error
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1170)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
17.732 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
17.892 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
17.893 [id=35] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
17.902 [id=39] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
17.923 [id=36] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
18.066 [id=1] INFO o.jvnet.hudson.test.JenkinsRule#waitOnline: Launching slave0…
19.024 [id=65] INFO o.j.h.test.SimpleCommandLauncher#launch: agent launched for slave0
19.025 [id=1] INFO o.jvnet.hudson.test.JenkinsRule#waitOnline: …finished launching slave0.
23.013 [id=1] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
23.069 [id=1] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
23.129 [id=1] INFO o.j.h.t.TemporaryDirectoryAllocator#dispose: deleting C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h301513721963188207
0.028 [id=1] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:50420/jenkins/
0.052 [id=116] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
0.054 [id=121] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
0.065 [id=116] INFO j.b.api.BouncyCastlePlugin#start: C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h1798060890086106849\plugins\bouncycastle-api\WEB-INF\optional-lib not found; for non RealJenkinsRule this is fine and can be ignored.
0.354 [id=119] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Local Ivy config file 'jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml' appears corrupt - ignoring it and using default config instead
Error was: failed to load settings from jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
0.364 [id=120] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
0.389 [id=119] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed GrapeHack.hack
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.getProperty(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(Unknown Source)
at org.apache.ivy.util.XMLHelper.newSAXParser(XMLHelper.java:92)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:170)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:132)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:122)
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:117)
at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:154)
Caused: java.text.ParseException: failed to load settings from jar:file:/C:/Jenkins/agent/workspace/ugins_warnings-ng-plugin_PR-1691%40tmp/m2repo/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:147)
at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:415)
at org.apache.ivy.core.settings.IvySettings$load.call(Unknown Source)
at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:100)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at java.base/java.lang.Class.newInstance(Class.java:645)
at groovy.grape.Grape.getInstance(Grape.java:121)
at org.jenkinsci.plugins.workflow.cps.global.GrapeHack.hack(GrapeHack.java:47)
Caused: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
Caused: java.lang.Error
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1170)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
0.420 [id=117] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
0.634 [id=120] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
0.658 [id=120] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
0.658 [id=120] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
0.659 [id=119] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
0.706 [id=115] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
Standard out
$ "C:\tools\jdk-17/bin/java" -Djava.awt.headless=true -Xmx512m -XX:+PrintCommandLineFlags -jar "C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\jenkins-for-test\WEB-INF\lib\remoting-3160.vd76b_9ddd10cc.jar"
-XX:ConcGCThreads=1 -XX:G1ConcRefinementThreads=4 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=268417088 -XX:MarkStackSize=4194304 -XX:MaxHeapSize=536870912 -XX:MinHeapSize=6815736 -XX:+PrintCommandLineFlags -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC -XX:-UseLargePagesIndividualAllocation
<===[JENKINS REMOTING CAPACITY]===>&#0;&#0;&#0;channel started
Remoting version: 3160.vd76b_9ddd10cc
Launcher: SimpleCommandLauncher
Communication Protocol: Standard in/out
This is a Windows agent
------------------------------------- Infos ------------------------------------
Parsing console log (workspace: 'C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h301513721963188207\agent-work-dirs\slave0\workspace\test0')
Successfully parsed console log
-> found 1 issue (skipped 0 duplicates)
Post processing issues on 'slave0' with source code encoding 'windows-1252'
Skipping SCM blames as requested
Resolving file names for all issues in workspace 'C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h301513721963188207\agent-work-dirs\slave0\workspace\test0'
-> resolved paths in source directory (1 found, 0 not found)
Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)
-> resolved module names for 1 issues
Resolving package names (or namespaces) by parsing the affected files
-> resolved package names of 1 affected files
No filter has been set, publishing all 1 issues
Creating fingerprints for all affected code blocks to track issues over different builds
-> created fingerprints for 1 issues (skipped 0 issues)
Copying affected files to Jenkins' build folder 'C:\Jenkins\agent\workspace\ugins_warnings-ng-plugin_PR-1691\plugin\target\tmp\j h301513721963188207\jobs\test0\builds\1\files-with-issues'
-> 1 copied, 0 not in workspace, 0 not-found, 0 with I/O error
Skipping cleaning of source code files in old builds
Repository miner is not configured, skipping repository mining
Reference build recorder is not configured
No valid reference build found
All reported issues will be considered outstanding
No quality gates have been set - skipping
Health report is disabled - skipping
Created analysis result for 1 issues (found 0 new issues, fixed 0 issues)
Attaching ResultAction with ID 'java' to build 'test0 #1'.
------------------------------------ Errors ------------------------------------
--------------------------------------------------------------------------------
Loading