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

CLI enable-plugin -restart restarts even if no plugins are enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • cli
    • None
    • Jenkins 2.136, Mac OS X High Sierra (10.13.6) Java 1.8.0_171
      Run using java -jar
    • Jenkins 2.140

    Description

      If the new CLI enable-plugin option is invoked with the -restart option, it will restart Jenkins even if no plugins are enabled.   If no plugins are enabled as the result of this command then there should not be a restart.

      To reproduce, disable the gradle plugin in the UI.  Then the first iteration of this command: java -jar jenkins-cli.jar -s http://localhost:8080/ -auth user:token enable-plugin gradle -restart. will report:

      Enabling plugin `gradle' (1.28)
      Plugin `gradle' was enabled.

      If you execute the command again, there will be no output as the plugin was already enabled.  However, Jenkins will still be restarted.

       

      Attachments

        Activity

          kearls Kevin EARLS created issue -
          danielbeck Daniel Beck added a comment -

          jvz FYI

          danielbeck Daniel Beck added a comment - jvz FYI
          jvz Matt Sicker made changes -
          Field Original Value New Value
          Assignee Matt Sicker [ jvz ]
          jvz Matt Sicker made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jvz Matt Sicker made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          jvz Matt Sicker added a comment - https://github.com/jenkinsci/jenkins/pull/3585
          jvz Matt Sicker made changes -
          Released As Jenkins 2.140
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]

          People

            jvz Matt Sicker
            kearls Kevin EARLS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: