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

Transitive plugin dependencies not correctly checked when using snapshots

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      When you use SNAPSHOTs the transitive dependency versions of the plugins are not being checked correctly, indicating the the -SNAPSHOT version is older than the actual version, which in this case is the same resolved to timestamped snapshot version

      Dec 13, 2016 5:22:09 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading plugin Operations Center Client Plugin v2.19.2.1-SNAPSHOT (private-e20a1be3-alobato) (operations-center-client)
      java.io.IOException: Operations Center Client Plugin v2.19.2.1-SNAPSHOT (private-e20a1be3-alobato) failed to load.
       - Operations Center Context v2.19.2.4-SNAPSHOT (private-6f16fea4-alobato) is older than required. To fix, install v2.19.2.4-20161201.084526-6 or later.
              at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:621)
              at hudson.PluginManager$2$1$1.run(PluginManager.java:516)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
              at jenkins.model.Jenkins$7.runTask(Jenkins.java:1038)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

      It looks like PluginWarper needs to resolve the real SNAPSHOT version to properly compare.

          [JENKINS-40899] Transitive plugin dependencies not correctly checked when using snapshots

          Alvaro Lobato created issue -

          Ryan Campbell added a comment -

          Alvaro, this looks like a clear duplicate, please reopen if not.

          Ryan Campbell added a comment - Alvaro, this looks like a clear duplicate, please reopen if not.
          Ryan Campbell made changes -
          Link New: This issue duplicates JENKINS-39301 [ JENKINS-39301 ]
          Ryan Campbell made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Ryan Campbell added a comment -

          Not a duplicate, but clearly related.

          Ryan Campbell added a comment - Not a duplicate, but clearly related.
          Ryan Campbell made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Ryan Campbell made changes -
          Link New: This issue is related to JENKINS-39301 [ JENKINS-39301 ]
          Ryan Campbell made changes -
          Link Original: This issue duplicates JENKINS-39301 [ JENKINS-39301 ]

          Antonio Muñiz added a comment - - edited

          The issue is not in core but maven-hpi-plugin and it is fixed in 1.121.
          It can be closed.

          Antonio Muñiz added a comment - - edited The issue is not in core but maven-hpi-plugin and it is fixed in 1.121. It can be closed.

          Jesse Glick added a comment -

          So amuniz you are saying that PR 46 addresses this case too? If so, great.

          Jesse Glick added a comment - So amuniz you are saying that PR 46 addresses this case too? If so, great.
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            alobato Alvaro Lobato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: