You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
n/a
Reproduction steps
mvn clean install -DskipTests && mvn test -Dtest=…
Expected Results
The test is run, build passes (or not) based on test result
Actual Results
[ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.27:test-runtime (test-runtime) on project jenkins-test: Failed to read MANIFEST.MF from /…/war/target/classes: /…/war/target/classes (Is a directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.27:test-runtime (test-runtime) on project jenkins-test: Failed to read MANIFEST.MF from /…/war/target/classes
…
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to read MANIFEST.MF from /Users/danielbeck/Repositories/github.com/daniel-beck/jenkins/war/target/classes
…
Caused by: java.io.FileNotFoundException: /Users/danielbeck/Repositories/github.com/daniel-beck/jenkins/war/target/classes (Is a directory)
at java.io.RandomAccessFile.open0 (Native Method)
at java.io.RandomAccessFile.open (RandomAccessFile.java:345)
at java.io.RandomAccessFile.<init> (RandomAccessFile.java:259)
at java.io.RandomAccessFile.<init> (RandomAccessFile.java:214)
at java.util.zip.ZipFile$Source.<init> (ZipFile.java:1305)
at java.util.zip.ZipFile$Source.get (ZipFile.java:1271)
at java.util.zip.ZipFile$CleanableResource.<init> (ZipFile.java:733)
at java.util.zip.ZipFile$CleanableResource.get (ZipFile.java:850)
at java.util.zip.ZipFile.<init> (ZipFile.java:248)
at java.util.zip.ZipFile.<init> (ZipFile.java:177)
at java.util.jar.JarFile.<init> (JarFile.java:350)
at java.util.jar.JarFile.<init> (JarFile.java:321)
at java.util.jar.JarFile.<init> (JarFile.java:287)
at org.jenkinsci.maven.plugins.hpi.TestRuntimeMojo.getManifestEntry (TestRuntimeMojo.java:93)
at org.jenkinsci.maven.plugins.hpi.TestRuntimeMojo.setAddOpensProperty (TestRuntimeMojo.java:62)
at org.jenkinsci.maven.plugins.hpi.TestRuntimeMojo.execute (TestRuntimeMojo.java:52)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Interestingly, the issue is no longer reproducible as described since jenkinsci/jenkins#8204. Looking at the diff, this would indicate #506 no longer finds the directory.
Confirmed by adding debug output, which results in the following paths for the file TestRuntimeMojo#getManifestEntry operates on:
Jenkins and plugins versions report
n/a
What Operating System are you using (both controller, and any agents involved in the problem)?
n/a
Reproduction steps
mvn clean install -DskipTests && mvn test -Dtest=…
Expected Results
The test is run, build passes (or not) based on test result
Actual Results
Anything else?
Bisecting identifies jenkinsci/jenkins#6432 as the culprit → https://github.com/jenkinsci/pom/releases/tag/jenkins-1.73 → #322 / #327
The text was updated successfully, but these errors were encountered: