Example #1
0
def docbuilders_from_rosdistro(c, oracle, distro, builders):
    doc = get_doc_file(oracle.getIndex(), distro)
    build_files = get_doc_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in doc.repositories.keys():
        if doc.repositories[name].type != 'git':
            print(
                'Cannot configure ros_debbuild for %s, as it is not a git repository'
                % name)
            continue
        for build_file in build_files:
            for os in build_file.get_target_os_names():
                for code_name in build_file.get_target_os_code_names(os):
                    for arch in build_file.get_target_arches(os, code_name):
                        print('Configuring ros_docbuild job for: %s_%s_%s' %
                              (name, code_name, arch))
                        jobs.append(
                            ros_docbuild(
                                c,
                                name,
                                doc.repositories[name].url,
                                doc.repositories[name].version,  # branch
                                code_name,
                                arch,
                                distro,
                                builders,
                                oracle.getOtherMirror('doc', distro,
                                                      code_name),
                                oracle.getKeys('doc', distro),
                                oracle.getDocTrigger(name, distro)))
    return jobs
Example #2
0
def docbuilders_from_rosdistro(c, oracle, distro, builders):
    doc = get_doc_file(oracle.getIndex(), distro)
    build_files = get_doc_build_files(oracle.getIndex(), distro)
    jobs = list()

    for name in doc.repositories.keys():
        if doc.repositories[name].type != 'git':
            print('Cannot configure ros_debbuild for %s, as it is not a git repository' % name)
            continue
        for build_file in build_files:
            for os in build_file.get_target_os_names():
                for code_name in build_file.get_target_os_code_names(os):
                    for arch in build_file.get_target_arches(os, code_name):
                        print('Configuring ros_docbuild job for: %s_%s_%s' % (name, code_name, arch))
                        jobs.append(ros_docbuild(c,
                                                 name,
                                                 doc.repositories[name].url,
                                                 doc.repositories[name].version,  # branch
                                                 code_name,
                                                 arch,
                                                 distro,
                                                 builders,
                                                 oracle.getOtherMirror('doc', distro, code_name),
                                                 oracle.getKeys('doc', distro),
                                                 oracle.getDocTrigger(name, distro)))
    return jobs