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
We have a Jenkins plugin that had dependencies on other plugins, namely the credentials, and struts plugins. These are declared as implementation deps in build.gradle. After updating to version 0.50 from 0.43 the build fails due to test failures because of "Plugin is missing" errors on the dependent plugins.
Including the dependencies as testImplementation deps does not make any difference.
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows
Reproduction steps
Build plugin with ./gradlew.bat build
Expected Results
Plugin builds without errors
Actual Results
build fails at PluginAutomaticTestBuilder$OtherTests. testPluginActive
> Task :generatedJenkinsTest
org.jenkinsci.plugins.generated.ws_ctm.InjectedTest > org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive FAILED
java.lang.AssertionError at PluginAutomaticTestBuilder.java:102
Caused by: java.io.IOException at PluginWrapper.java:988
13 tests completed, 1 failed
> Task :generatedJenkinsTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generatedJenkinsTest'.
> There were failing tests. See the report at:
Anything else?
Tests fail due to missing Jenkins plugin dependencies (credentials, and struts plugins)
java.lang.AssertionError: While testing ws-ctm, ws-ctm failed to start
at org.jvnet.hudson.test.PluginAutomaticTestBuilder$OtherTests.testPluginActive(PluginAutomaticTestBuilder.java:102)
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:569)
at junit.framework.TestCase.runTest(TestCase.java:177)
...
Caused by: java.io.IOException: Failed to load: Worksoft Continuous Test Manager Plugin (ws-ctm 3.0.0.0)
- Plugin is missing: credentials (1380.va_435002fa_924)
- Plugin is missing: structs (338.v848422169819)
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:988)
at hudson.PluginManager$2$1$1.run(PluginManager.java:552)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
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)
... 1 more
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
We have a Jenkins plugin that had dependencies on other plugins, namely the
credentials
, andstruts
plugins. These are declared asimplementation
deps inbuild.gradle
. After updating to version0.50
from0.43
the build fails due to test failures because of "Plugin is missing" errors on the dependent plugins.Including the dependencies as
testImplementation
deps does not make any difference.What Operating System are you using (both controller, and any agents involved in the problem)?
Windows
Reproduction steps
./gradlew.bat build
Expected Results
Plugin builds without errors
Actual Results
build fails at
PluginAutomaticTestBuilder$OtherTests. testPluginActive
Anything else?
Tests fail due to missing Jenkins plugin dependencies (
credentials
, andstruts
plugins)Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: