-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce RealJenkinsRule.createSyntheticPlugin
to allow synthetic plugins to be installed dynamically and break compatibility for existing callers of RealJenkinsRule.addSyntheticPlugin
#920
Conversation
src/test/java/org/jvnet/hudson/test/RealJenkinsRuleSyntheticPluginTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pending discussion of done
)
…d createSyntheticPlugin
@@ -40,7 +41,7 @@ public final class RealJenkinsRuleSyntheticPluginTest { | |||
@Rule public RealJenkinsRule rr = new RealJenkinsRule().prepareHomeLazily(true); | |||
|
|||
@Test public void smokes() throws Throwable { | |||
rr.addSyntheticPlugin(Stuff.class.getPackage()).done(); | |||
rr.addSyntheticPlugin(new SyntheticPlugin(Stuff.class.getPackage())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is no longer backwards compatible, but this is all that needs to be done to adapt.
(Merge at will, if the revised API is being used successfully downstream.) |
RealJenkinsRule.createSyntheticPlugin
to allow synthetic plugins to be installed dynamically and break compatibility for existing callers of RealJenkinsRule.addSyntheticPlugin
Needed for jenkinsci/jenkins#10240.
Backwards-incompatible for most existing callers of
RealJenkinsRule.addSyntheticPlugin
.Testing done
New automated test case added.
Submitter checklist