def t09(): pretty = '%s t9' % __file__ print(pretty) w = Workspace() w.config['jenkins'] = JENKINS; job = JenkinsJob(w.config['jenkins'], JOB_ID) try: job.load() build = job.last_completed() except Exception, e: print('FAIL %s: got exception: %s' % (pretty, str(e))) w.delete() return
def t06(): pretty = '%s t6' % __file__ print(pretty) w = Workspace() w.config['jenkins'] = JENKINS; exc = None try: job = JenkinsJob(w.config['jenkins'], JOB_ID) job.load(timeout=0.000001) # let's hope this is small enough to fail print('FAIL %s: JenkinsJob.load() did not time out' % pretty) w.delete() return except Exception, e: exc = e
def t18(): pretty = '%s t18' % __file__ print(pretty) w = Workspace() job = JenkinsJob(base=JENKINS_WITH_BUILD_PARAMETERS, job=JOB_ID_WITH_BUILD_PARAMETERS) try: job.load() build = job.last_successful() build_parameters = build.build_parameters product = build_parameters['PRODUCT'] except Exception, e: print('FAIL %s: got exception: %s' % (pretty, str(e))) w.delete() return