mirror of https://github.com/axmolengine/axmol.git
[jenkins-watchdog] int(os.environ['jenkins-job-watchdog-threshold'])replace os.environ['jenkins-job-watchdog-threshold']
This commit is contained in:
parent
86569cf456
commit
bcdf74f4ee
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue