Exemplo n.º 1
0
def push_mirror_contents(env, spec, yaml_path, mirror_url, build_id):
    if mirror_url:
        tty.debug('Creating buildcache')
        buildcache._createtarball(env, yaml_path, None, mirror_url, None, True,
                                  True, False, False, True, False)
        if build_id:
            tty.debug('Writing cdashid ({0}) to remote mirror: {1}'.format(
                build_id, mirror_url))
            write_cdashid_to_mirror(build_id, spec, mirror_url)
Exemplo n.º 2
0
def push_mirror_contents(env, spec, yaml_path, mirror_url, build_id):
    if mirror_url:
        tty.debug('Creating buildcache')
        buildcache._createtarball(env,
                                  spec_yaml=yaml_path,
                                  add_deps=False,
                                  output_location=mirror_url,
                                  force=True,
                                  allow_root=True)
        if build_id:
            tty.debug('Writing cdashid ({0}) to remote mirror: {1}'.format(
                build_id, mirror_url))
            write_cdashid_to_mirror(build_id, spec, mirror_url)
Exemplo n.º 3
0
def push_mirror_contents(env, spec, yaml_path, mirror_url, build_id,
                         sign_binaries):
    if mirror_url:
        unsigned = not sign_binaries
        tty.debug('Creating buildcache ({0})'.format(
            'unsigned' if unsigned else 'signed'))
        buildcache._createtarball(env,
                                  spec_yaml=yaml_path,
                                  add_deps=False,
                                  output_location=mirror_url,
                                  force=True,
                                  allow_root=True,
                                  unsigned=unsigned)
        if build_id:
            tty.debug('Writing cdashid ({0}) to remote mirror: {1}'.format(
                build_id, mirror_url))
            write_cdashid_to_mirror(build_id, spec, mirror_url)