-
Bug
-
Resolution: Fixed
-
Major
-
None
https://github.com/jenkinsci/acceptance-test-harness/commit/7f979cccde0755bab9236f4ba9003eb4e83f59ba changed the way how @WithPlugins behaves - now it updates(/downgrades?) plugins. This does not work together with populating jenkins home or `PLUGINS_DIR`. It updates plugins user explicitly asked for.
If I understand the change correctly it should do something similar as @Since annotation. With meaning: Some feature was not available until given version, so it is pointless to run this test.
Here is what @WithPlugins("artifactId") should do:
if not installed install latest version from update center.
Here is what @WithPlugins("artifactId@version") should do:
if not installed install latest version from update center if this version is older than required fail the test else if this version is older than required skip the test
- is related to
-
JENKINS-23093 Make plugin installation policy configurable
-
- Resolved
-
Hmm, isn't @WithPlugins there to create the subject under test (SUT)? Seems that actually the PLUGIN_DIR feature is broken? If I follow your argumentation, then no plugin should be installed at all using @WithPlugins.
And how do I do that? When I start my tests using 'mvn test -DPluginTests' I can't provide the plugin versions to load. The SUT will get populated automatically.
See comment above: Jenkins war contains prepackaged plug-ins that are old.
Isn't there a way to get both behaviors? Not changing the PLUGIN_DIR option AND allowing to test new plugins without creating an explicit fixture.