'Implements interface.'

def validate_options(self, options):

    if (((options.jenkins_master_name is None) != (options.jenkins_master_address is None)) or ((options.jenkins_master_name is None) != (options.jenkins_master_user is None))):
        raise ValueError('Inconsistent    jenkins_master    specification:        --jenkins_master_name="{0}"    --jenkins_master_address="{1}"    --jenkins_master_user="{2}"'.format(options.jenkins_master_name, options.jenkins_master_address, options.jenkins_master_user))
    if (options.jenkins_master_name and (os.environ.get('JENKINS_MASTER_PASSWORD') is None)):
        raise ValueError('--jenkins_master_name    was    provided,    but    no    JENKINS_MASTER_PASSWORD    environment    variable')
    options.jenkins_master_enabled = (options.jenkins_master_name is not None)
