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

Core plugins cannot be upgraded with jenkins-cli

    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

            rogerw roger welin created issue -
            rogerw roger welin made changes -
            Field Original Value New Value
            Environment Jenkins 1.611, Centos 6.5 Jenkins 1.612, Centos 6.5, Java: Java(TM) SE Runtime Environment (build 1.8.0_60-b27
            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
            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
            jglick Jesse Glick made changes -
            Component/s cvs-plugin [ 15486 ]
            Component/s maven-plugin [ 16033 ]
            Component/s antisamy-markup-formatter-plugin [ 18424 ]
            jglick Jesse Glick made changes -
            Labels core jenkins plugins cli
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            danielbeck Daniel Beck made changes -
            Link This issue duplicates JENKINS-29726 [ JENKINS-29726 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 166020 ] JNJira + In-Review [ 197880 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: