[jenkins-watchdog] int(os.environ['jenkins-job-watchdog-threshold'])replace os.environ['jenkins-job-watchdog-threshold']

This commit is contained in:
linchaogithub 2014-03-17 14:53:03 +08:00
parent 86569cf456
commit bcdf74f4ee
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import os
#check & kill dead buid #check & kill dead buid
def build_time(_job): def build_time(_job):
#get jenkins-job-watchdog-threshold #get jenkins-job-watchdog-threshold
threshold = os.environ['jenkins-job-watchdog-threshold'] threshold = int(os.environ['jenkins-job-watchdog-threshold'])
#Get last build running #Get last build running
build = _job.get_last_build() build = _job.get_last_build()
running = build.is_running() running = build.is_running()