[info] printing out job info

This commit is contained in:
Mike Aizatsky 2016-12-29 10:43:04 -08:00 committed by GitHub
parent 833614005c
commit a5b6c3dc05
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import codecs
import datetime
import json
import os
import pprint
import subprocess
import sys
import traceback
@ -41,6 +42,7 @@ def get_build_results(server):
project = name[len('projects/'):]
info = server.get_job_info(name)
pprint.pprint(info)
last_build_number = info['lastCompletedBuild']['number']
if info['lastFailedBuild']: