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

Explicit plugin builds can be overriden by Jenkins

      The default plugin installation strategy performs dependency resolution on its own and upload plugins. Except for the maintenance cost and fragileness, latest Jenkins versions started to overwrite plugins controlled explicitly.

      The upload approach allows users to specify version or binary of the plugin to install. That is used instead of latest release available and installed. However, when the deploy of such plugin fails (which is ok as we detect that and restart) but installation of dependent plugin can cause different version of dependency to overrwrite the requested one.

      Actual example: test require openstack-cloud, that depends on config-file-provider that depend on bundled plugin. When running the tests I overwrite config-file-provider version. But since that needs bundled plugin updated (which require restart) it is not dynamically deployed until restart. When openstack-cloud is being uploaded, Jenkins detects its dependency is not loaded (only installed) and fetch latest version from update center. So my attempt to override the version is ignored silently. There is no log from core or ath indicating this is happening - just .bak file in plugins dir.

          [JENKINS-40775] Explicit plugin builds can be overriden by Jenkins

          Daniel Beck added a comment -

          Jenkins detects its dependency is not loaded (only installed) and fetch latest version from update center

          Looks to me like the problem is here. This should not happen.

          Daniel Beck added a comment - Jenkins detects its dependency is not loaded (only installed) and fetch latest version from update center Looks to me like the problem is here. This should not happen.

          I do not dare to conclude that. Possibly the dependency needs restart or it is something that will never install correctly for some other reason.

          slide_o_mix, wdyt, as an author?

          Oliver Gondža added a comment - I do not dare to conclude that. Possibly the dependency needs restart or it is something that will never install correctly for some other reason. slide_o_mix , wdyt, as an author?

          Jesse Glick added a comment -

          ATH no longer deals with “bundled” plugins at all so I am not sure what you mean by this issue.

          Jesse Glick added a comment - ATH no longer deals with “bundled” plugins at all so I am not sure what you mean by this issue.

            olivergondza Oliver Gondža
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: