@WithPlugins annotation tries to to the right thing in all situations (JENKINS-23087), though there are different use cases when it comes to using existing/latest plugin version.

      Introduce configuration for following policies while running tests:

      • Never touch version of installed plugin (bundled/prepopulated).
      • When installed version is older than version required in @WithPlugins, install latest.

          [JENKINS-23093] Make plugin installation policy configurable

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          docs/CONTROLLER.md
          src/main/java/org/jenkinsci/test/acceptance/junit/WithPlugins.java
          http://jenkins-ci.org/commit/acceptance-test-harness/1aedbbcbec207d98a86848648aa45d50abe9f8f3
          Log:
          [FIXED JENKINS-23093]JENKINS-23087 Fixed WithPlugins annotation.
          Now existing plugin will be overwritten with newer version if env var
          NEVER_REPLACE_EXISTING_PLUGINS is not set.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: docs/CONTROLLER.md src/main/java/org/jenkinsci/test/acceptance/junit/WithPlugins.java http://jenkins-ci.org/commit/acceptance-test-harness/1aedbbcbec207d98a86848648aa45d50abe9f8f3 Log: [FIXED JENKINS-23093] JENKINS-23087 Fixed WithPlugins annotation. Now existing plugin will be overwritten with newer version if env var NEVER_REPLACE_EXISTING_PLUGINS is not set.

            drulli Ulli Hafner
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: