Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40770

Take into account optional dependencies during plugins installation

XMLWordPrintable

      • A plugin can declare a dependency as optional, so it's not taken into account when installing the plugin.
      • In a test, that optional dependency can be required through @WithPlugins annotation.
      • That is making the plugin to be installed but not necessarily before the plugin with the dependency, which can make some extension points not to be functional.
      • In some occasions, that is making some tests to fail as there is no installation error (as the dependency is optional) and a restart is not therefore required.
      • Thus: if a plugin has an optional dependency that is marked as required, that dependency needs to be installed before the plugin itself.

            egutierrez Evaristo Gutierrez
            egutierrez Evaristo Gutierrez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: