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

Core plugins cannot be upgraded with jenkins-cli

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Jenkins 1.612, Centos 6.5, Java: Java(TM) SE Runtime Environment (build 1.8.0_60-b27

      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

          [JENKINS-30893] Core plugins cannot be upgraded with jenkins-cli

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

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

              Created:
              Updated:
              Resolved: