rcbops/jenkins-build — pull request #51 by cloudnull (2014-04-10 03:41:30+00:00)
Title: Overhaul of the jenkins IRC and github notifications script.

These changes were done to fix a number of issues while also providing
some additional functionality. The commit comes with an example
configuration file which contains information on how you can use it.

Fixes:

* when running the script the script was limited at 100 repositories
per page. While we did not have more than 100 repos this was a
limiting factor for future growth. The script now has the ability
to paginate.
* On every run the script would update each repository as it iterated
through the repos. This would cause the "events" list to be rewritten
on every single run. This also caused inconsistencies between repos.
The script will now only update repositories when needed.
* The script had the github/irc credentials embedded in it.
The script now uses a configuration file to store all of the credentials.
The configuration file, must be in the home folder of the user executing the
script or in the folder "/etc/jenkins_notify". Additionally, the
configuration file must have the permissions, 600 or 400.
* Flake8 / Pep8

Updates:

* Everything is now sectioned out into methods.
* The script will now log all of the actions that it takes.
* script has a —debug option for more information on the actions being taken.
* Now supports multiple accounts (orgs) in the git_repo section of the configuration file.
This will allow us to setup notifications on additional repositories.