{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/31","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/31/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/31/events","html_url":"https://github.com/SatelliteQE/robottelo-ci/pull/31","id":76862128,"number":31,"title":"Add script for managing Jenkins plugins","user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-15T21:24:40Z","updated_at":"2015-05-19T20:47:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/31","html_url":"https://github.com/SatelliteQE/robottelo-ci/pull/31","diff_url":"https://github.com/SatelliteQE/robottelo-ci/pull/31.diff","patch_url":"https://github.com/SatelliteQE/robottelo-ci/pull/31.patch"},"body":"Related to #27:\r\n\r\n> Our Jenkins installation makes use of several plugins. robottelo-ci should be\r\n> able to manage the plugins that Jenkins has installed. I envision robottelo-ci\r\n> being able to accomplish the following tasks:\r\n>\r\n> * Given a freshly installed Jenkins instance, make that Jenkins instance install\r\n>   a correct set of plugins.\r\n> * Given an existing Jenkins instance, make that Jenkins instance install any\r\n>   missing plugins and remove any extra plugins.\r\n> * Given an existing Jenkins instance, make that Jenkins instance upgrade or\r\n>   downgrade its installed plugins.\r\n\r\nHere's an example of the script in action:\r\n\r\n    $ scripts/manage_plugins.py query | grep -i git\r\n    github-api@1.67\r\n    git-server@1.6\r\n    git-client@1.17.1\r\n    $ scripts/manage_plugins.py install git\r\n    Plugins are being installed. You may need to restart Jenkins when all plugins are done installing.\r\n    $ scripts/manage_plugins.py query | grep -i git\r\n    github-api@1.67\r\n    git@2.3.5\r\n    git-server@1.6\r\n    git-client@1.17.1\r\n    $ sudo systemctl restart jenkins\r\n    $ scripts/manage_plugins.py query | grep -i git\r\n    github-api@1.67\r\n    github@1.11.3\r\n    git@2.3.5\r\n    git-server@1.6\r\n    git-client@1.17.1\r\n    $ scripts/manage_plugins.py uninstall git\r\n    $ sudo systemctl restart jenkins\r\n    $ scripts/manage_plugins.py query | grep -i git\r\n    github-api@1.67\r\n    git-server@1.6\r\n    git-client@1.17.1\r\n\r\nAlso add a make task that updates a Jenkins server's jobs and installs/updates\r\nall plugins, all in one go. `plugins.txt` was created by running\r\n`scripts/manage_plugins.py query --explicit` on a live Jenkins instance."},"comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/comments/103663582","html_url":"https://github.com/SatelliteQE/robottelo-ci/pull/31#issuecomment-103663582","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/31","id":103663582,"user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T20:47:19Z","updated_at":"2015-05-19T20:47:19Z","body":"Updated."}}