Thanks for the reply. It looks like your repo is similar to
https://github.com/sheehan/job-dsl-gradle-example/, which is the example that our repo is based on as well. We've got Specifications that test the job DSL syntax and other job configuration stuff. And I see how the resolveTestPlugins task in build.gradle saves plugins to the build/resources/test/test-dependencies folder that the Jenkins test harness will look in to get the plugins with which to load the in-memory Jenkins instances.
What I want to do is load those in-memory Jenkins instances spun up by the Jenkins test harness with different plugins, depending on the Specification being run. So for most Specifications, I'll use one set of plugins, but for another set of Specifications, I'd like to use another...
I thought that `new JenkinsRule().with(MyPluginManager.INSTANCE)` or something like that would solve this issue for me, but I'm having trouble with it. I'm seeking help on how to get this to work.
I've updated my StackOverflow question with a link to a GitHub repo that reproduces the problem I'm seeing:
https://github.com/matthiasdenu/plugin-manager-bug/tree/main Help is appreciated!