def required_jenkins_settings(settings):
    """ Checks if all settings required for interacting with jenkins build are set """
    try:
        return all([ settings.get('jenkins', setting) != '' for setting in ['url', 'username', 'password', 'job_name', 'build_num'] ])
    except KeyError:
        return False