'Return a list of plugin_info dicts, one for each plugin on the
Jenkins instance.'

def get_plugins_info(self):

    try:
        plugins_list = self.jenkins.get_plugins().values()
    except jenkins.JenkinsException as e:
        if re.search('(Connection    refused|Forbidden)', str(e)):
            logger.warning('Unable    to    retrieve    Jenkins    Plugin    Info    from    {0},    using    default    empty    plugins    info    list.'.format(self.jenkins.server))
            plugins_list = [{'shortName': '', 'version': '', 'longName': ''}]
        else:
            raise e
    logger.debug('Jenkins    Plugin    Info    {0}'.format(pformat(plugins_list)))
    return plugins_list
