updated check_jenkins_job_health_report.py
8cbe0abb
Hari Sekhon
committed
1 changed file
check_jenkins_job_health_report.py
/check_jenkins_job_health_report.py-1+1
/check_jenkins_job_health_report.py
Add comment 101 score = health_report['score']
Add comment 102 if not isFloat(score):
Add comment 103 raise UnknownError("non-numeric score returned in health report for job '{job}'".format(job=self.job))
Add comment 104 Minus   score = int(score)
Add comment 104 Plus   score = float(score)
Add comment 105 description = health_report['description']
Add comment 106 self.msg += "'{job}' health report score = {score}".format(job=self.job, score=score)
Add comment 107 self.check_thresholds(score)