raise Exception("'building' not in job_info as expected") if not "anime" in job_info["color"]: print("Triggering %s" % (job_name)) jenkins_instance.build_job(job_name) else: print("Skipping trigger of job %s because it's already running" % jobname) return True except Exception, ex: print("Failed to trigger %s: %s" % (job_name, ex)) return False if __name__ == "__main__": args = parse_options() missing = release_jobs.compute_missing(args.distros, args.fqdn, rosdistro=args.rosdistro) pp = pprint.PrettyPrinter() print("net Missing") pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle( jenkins_support.load_server_config_file(jenkins_support.get_default_catkin_debs_config()) ) for s, dist_archs in missing.iteritems(): detected_source = False for da in dist_archs: if "source" in da:
print("Triggering '%s'" % (job_name)) #return jenkins_instance.build_job(job_name) # replicate internal implementation of Jenkins.build_job() import urllib2 if not jenkins_instance.job_exists(job_name): raise jenkins.JenkinsException('no such job[%s]' % (job_name)) # pass parameters to create a POST request instead of GET return jenkins_instance.jenkins_open(urllib2.Request(jenkins_instance.build_job_url(job_name), 'foo=bar')) if __name__ == '__main__': args = parse_options() missing = release_jobs.compute_missing( args.distros, args.arches, args.fqdn, rosdistro=args.rosdistro, sourcedeb_only=args.sourcedeb_only) print('') print('Missing packages:') pp = pprint.PrettyPrinter() pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle(jenkins_support.load_server_config_file(jenkins_support.get_default_catkin_debs_config())) missing_by_arch = {} for pkg in sorted(missing.iterkeys()): dist_archs = missing[pkg] for da in dist_archs:
if __name__ == '__main__': args = parse_options() rd = RosDistro(args.rosdistro, rosdist_rep=args.rosdist_rep, dont_load_deps=True) targets = get_targets(rd, args.distros, args.arches) jp = JobParams(rosdistro=args.rosdistro, distros=targets.keys(), arches=targets, fqdn=args.fqdn, jobgraph=None, rosdist_rep=args.rosdist_rep, rd_object=rd) missing = release_jobs.compute_missing(jp, sourcedeb_only=args.sourcedeb_only) pp = pprint.PrettyPrinter() print ("net Missing") pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle(jenkins_support.load_server_config_file(jenkins_support.get_default_catkin_debs_config())) missing_by_arch = {} for pkg in sorted(missing.iterkeys()): dist_archs = missing[pkg] for da in dist_archs: if da.endswith('_source'): da = 'source' if da not in missing_by_arch:
#return jenkins_instance.build_job(job_name) # replicate internal implementation of Jenkins.build_job() import urllib2 if not jenkins_instance.job_exists(job_name): raise jenkins.JenkinsException('no such job[%s]' % (job_name)) # pass parameters to create a POST request instead of GET return jenkins_instance.jenkins_open( urllib2.Request(jenkins_instance.build_job_url(job_name), 'foo=bar')) if __name__ == '__main__': args = parse_options() missing = release_jobs.compute_missing(args.distros, args.arches, args.fqdn, rosdistro=args.rosdistro, sourcedeb_only=args.sourcedeb_only) print('') print('Missing packages:') pp = pprint.PrettyPrinter() pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle( jenkins_support.load_server_config_file( jenkins_support.get_default_catkin_debs_config())) missing_by_arch = {} for pkg in sorted(missing.iterkeys()):
print("Triggering %s" % (job_name)) jenkins_instance.build_job(job_name) else: print("Skipping trigger of job %s because it's already running" % jobname) return True except Exception, ex: print("Failed to trigger %s: %s" % (job_name, ex)) return False if __name__ == '__main__': args = parse_options() missing = release_jobs.compute_missing(args.distros, args.fqdn, rosdistro=args.rosdistro) pp = pprint.PrettyPrinter() print("net Missing") pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle( jenkins_support.load_server_config_file( jenkins_support.get_default_catkin_debs_config())) for s, dist_archs in missing.iteritems(): detected_source = False for da in dist_archs:
raise jenkins.JenkinsException('no such job[%s]' % (job_name)) # pass parameters to create a POST request instead of GET return jenkins_instance.jenkins_open(urllib2.Request(jenkins_instance.build_job_url(job_name), 'foo=bar')) if __name__ == '__main__': args = parse_options() arches = args.arches if 'amd64' in arches: arches[arches.index('amd64')] = 'x86_64' missing = release_jobs.compute_missing( args.distros, args.arches, args.fqdn, rosdistro=args.rosdistro, sourcepkg_only=args.sourcepkg_only, platform=args.platform) print('') print('Missing packages:') pp = pprint.PrettyPrinter() pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle(jenkins_support.load_server_config_file(jenkins_support.get_default_catkin_debs_config())) missing_by_arch = {} for pkg in sorted(missing.iterkeys()): dist_archs = missing[pkg]
if __name__ == '__main__': args = parse_options() rd = RosDistro(args.rosdistro, rosdist_rep=args.rosdist_rep, dont_load_deps=True) targets = get_targets(rd, args.distros, args.arches) jp = JobParams(rosdistro=args.rosdistro, distros=targets.keys(), arches=targets, fqdn=args.fqdn, jobgraph=None, rosdist_rep=args.rosdist_rep, rd_object=rd) missing = release_jobs.compute_missing(jp, sourcedeb_only=args.sourcedeb_only) print('') print('Missing packages:') pp = pprint.PrettyPrinter() pp.pprint(missing) if args.commit: jenkins_instance = jenkins_support.JenkinsConfig_to_handle(jenkins_support.load_server_config_file(jenkins_support.get_default_catkin_debs_config())) missing_by_arch = {} for pkg in sorted(missing.iterkeys()): dist_archs = missing[pkg] for da in dist_archs: if da.endswith('_source'): da = 'source'