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

Core plugins cannot be upgraded with jenkins-cli

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 1.612, Centos 6.5, Java: Java(TM) SE Runtime Environment (build 1.8.0_60-b27
    • Similar Issues:

      Description

      Im installing Jenkins with ansible so I have all plugins pinned to a version and then I install them with jenkins-cli. The plugins that are core to Jenkins won't upgrade this way (doing it from the gui or manually dropping them in the plugins folder works). I tested with cvs plugin, antisamy-markup-formatted plugin and Maven plugin

      Tried both to upgrade plugin from url and download the file yields the same result (i.e Jenkins wont upgrade the plugin. Other plugins works fine, just those who are in the core won't work). This example is with the antisamy-markup-formatted plugin

      _wget "http://updates.jenkins-ci.org/download/plugins/antisamy-markup-formatter/1.3/antisamy-markup-formatter.hpi"

      java -jar /home/jenkins/work/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/jenkins install-plugin antisamy-markup-formatter.hpi
      Installing a plugin from local file: antisamy-markup-formatter.hpi

      service jenkins restart

      grep "Plugin-Version" antisamy-markup-formatter/META-INF/MANIFEST.MF
      Plugin-Version: 1.1_

      No interesting output in the jenkins.log

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rogerw roger welin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: