Only record stats for successful jobs.

Stats on failures aren't very useful because they are so random.

Change-Id: Ia289d8f4666645e7b01e1fc3d75ff86a0b5e20a1
This commit is contained in:
James E. Blair
2013-02-15 10:52:34 -08:00
parent 6a5db29844
commit 8e55fd9887

View File

@@ -50,7 +50,7 @@ def main():
fd = urllib.urlopen(UPSTREAM_BUILD_URL+'api/json')
data = json.load(fd)
result = data['result']
if result in ['SUCCESS', 'FAILURE']:
if result == 'SUCCESS':
dt = int(data['duration'])
key = 'devstack.job.%s' % UPSTREAM_JOB_NAME