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

There should be a command line mechanism to disable plugins

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None
    • (towards) 2.151

    Description

      The typical system administrator, to urgently recover from a problem, will need to use local system commands to disable plugins indicated a problem in the Jenkins logs.

      The first step is to include a "README" in the install and/or plugin directories. This readme file may be as simple as to link to the Jenkins online documentation describing the file structure and configurations.

      Secondly, there should be clear documentation on the "manual" backup/restore/disabling plugins and their configurations.

      Lastly, if it is not currently possible to disable a plugin via the command line and/or config update a process should be added to Jenkins to do so.

      See thread https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFuG9t_F4zL%3D7ncg53XdZG9dZD-GdWQ1dtTN53DrKjm8g%40mail.gmail.com

      Attachments

        Issue Links

          Activity

            jpyeron Jason Pyeron created issue -
            jpyeron Jason Pyeron added a comment - related: https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disabling+plugins
            danielbeck Daniel Beck added a comment - - edited

            There is no explanation or justification for any of the requests in this issue.

            The typical system administrator, to urgently recover from a problem, will need to use local system commands to disable plugins indicated a problem in the Jenkins logs.

            touch $JENKINS_HOME/plugins/$PLUGIN_NAME.jpi.disabled

            The first step is to include a "README" in the install and/or plugin directories. This readme file may be as simple as to link to the Jenkins online documentation describing the file structure and configurations.

            Not sure what's needed here, but please note that the Jenkins folder structure is mostly considered to be opaque to users and messing with it without knowing really well what you're doing will generally not work (such as the issues users who bypass the plugin manager and use chef to manage plugin while ignoring dependencies experience). Adding this README would elevate messing with Jenkins home to a "supported" use, which it is not.

            Secondly, there should be clear documentation on the "manual" backup/restore/disabling plugins and their configurations.

            There is, linked in your comment.

            Lastly, if it is not currently possible to disable a plugin via the command line and/or config update a process should be added to Jenkins to do so.

            (Correction: The UI broke as it's the auth plugin – JENKINS-27175 – but it's documented on the wiki, and easy enough to understand how $JENKINS_HOME/plugins works.)

            danielbeck Daniel Beck added a comment - - edited There is no explanation or justification for any of the requests in this issue. The typical system administrator, to urgently recover from a problem, will need to use local system commands to disable plugins indicated a problem in the Jenkins logs. touch $JENKINS_HOME/plugins/$PLUGIN_NAME.jpi.disabled The first step is to include a "README" in the install and/or plugin directories. This readme file may be as simple as to link to the Jenkins online documentation describing the file structure and configurations. Not sure what's needed here, but please note that the Jenkins folder structure is mostly considered to be opaque to users and messing with it without knowing really well what you're doing will generally not work (such as the issues users who bypass the plugin manager and use chef to manage plugin while ignoring dependencies experience). Adding this README would elevate messing with Jenkins home to a "supported" use, which it is not. Secondly, there should be clear documentation on the "manual" backup/restore/disabling plugins and their configurations. There is, linked in your comment. Lastly, if it is not currently possible to disable a plugin via the command line and/or config update a process should be added to Jenkins to do so. (Correction: The UI broke as it's the auth plugin – JENKINS-27175 – but it's documented on the wiki, and easy enough to understand how $JENKINS_HOME/plugins works.)
            jpyeron Jason Pyeron added a comment -

            Justification:

            It is a best practice to have documentation for a server on the server. Take for example systems and networks without internet access. Even if there was internet access, the sysadmin would expect the docs to be with the program, for THAT version.

            What is needed:

            docs installed with Jenkins.

            What is not needed:

            "support" for mucking with jenkins file system.

            jpyeron Jason Pyeron added a comment - Justification: It is a best practice to have documentation for a server on the server. Take for example systems and networks without internet access. Even if there was internet access, the sysadmin would expect the docs to be with the program, for THAT version. What is needed: docs installed with Jenkins. What is not needed: "support" for mucking with jenkins file system.
            jpyeron Jason Pyeron made changes -
            Field Original Value New Value
            Summary There should be a command line mechism to disable plugins There should be a command line mechanism to disable plugins
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 161375 ] JNJira + In-Review [ 180675 ]
            mramonleon Ramon Leon made changes -
            Assignee Ramon Leon [ mramonleon ]
            mramonleon Ramon Leon made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            wfollonier Wadeck Follonier made changes -
            Remote Link This issue links to "#3648 in core (Web Link)" [ 21840 ]
            mramonleon Ramon Leon added a comment - PR:  https://github.com/jenkinsci/jenkins/pull/3648
            mramonleon Ramon Leon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Fixed but Unreleased [ 10203 ]
            batmat Baptiste Mathus made changes -
            Released As (towards) 2.151
            danielbeck Daniel Beck made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-33843 [ JENKINS-33843 ]

            People

              mramonleon Ramon Leon
              jpyeron Jason Pyeron
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: