def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'check_sync_criteria' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_os_code_name(parser) add_argument_arch(parser) add_argument_distribution_repository_urls(parser) add_argument_distribution_repository_key_files(parser) add_argument_cache_dir(parser) add_argument_dockerfile_dir(parser) args = parser.parse_args(argv) data = copy.deepcopy(args.__dict__) data.update({ 'distribution_repository_urls': args.distribution_repository_urls, 'distribution_repository_keys': get_distribution_repository_keys( args.distribution_repository_urls, args.distribution_repository_key_files), 'uid': get_user_id(), }) create_dockerfile( 'release/release_check_sync_criteria_task.Dockerfile.em', data, args.dockerfile_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'check_sync_criteria' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_os_code_name(parser) add_argument_arch(parser) add_argument_distribution_repository_urls(parser) add_argument_distribution_repository_key_files(parser) add_argument_cache_dir(parser) add_argument_dockerfile_dir(parser) args = parser.parse_args(argv) data = copy.deepcopy(args.__dict__) data.update({ 'os_name': 'ubuntu', 'os_code_name': 'trusty', 'maintainer_email': '*****@*****.**', 'maintainer_name': 'Dirk Thomas', 'distribution_repository_urls': args.distribution_repository_urls, 'distribution_repository_keys': get_distribution_repository_keys( args.distribution_repository_urls, args.distribution_repository_key_files), 'uid': os.getuid(), }) create_dockerfile( 'release/release_check_sync_criteria_task.Dockerfile.em', data, args.dockerfile_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser(description="Run the 'trigger_jobs' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_distribution_repository_urls(parser) add_argument_distribution_repository_key_files(parser) add_argument_missing_only(parser) add_argument_source_only(parser) add_argument_groovy_script(parser) add_argument_cache_dir(parser) add_argument_dockerfile_dir(parser) args = parser.parse_args(argv) data = copy.deepcopy(args.__dict__) data.update({ 'distribution_repository_urls': args.distribution_repository_urls, 'distribution_repository_keys': get_distribution_repository_keys( args.distribution_repository_urls, args.distribution_repository_key_files), 'uid': get_user_id(), }) create_dockerfile('release/release_create_trigger_task.Dockerfile.em', data, args.dockerfile_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'trigger_jobs' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_distribution_repository_urls(parser) add_argument_distribution_repository_key_files(parser) add_argument_missing_only(parser) add_argument_source_only(parser) add_argument_groovy_script(parser) add_argument_cache_dir(parser) add_argument_dockerfile_dir(parser) args = parser.parse_args(argv) data = copy.deepcopy(args.__dict__) data.update({ 'distribution_repository_urls': args.distribution_repository_urls, 'distribution_repository_keys': get_distribution_repository_keys( args.distribution_repository_urls, args.distribution_repository_key_files), 'uid': get_user_id(), }) create_dockerfile( 'release/release_create_trigger_task.Dockerfile.em', data, args.dockerfile_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Audit the rosdistro for packages failing to build.') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_cache_dir(parser, '/tmp/package_repo_cache') add_argument_return_zero(parser) args = parser.parse_args(argv) recommended_action_count = run_audit(args.config_url, args.rosdistro_name, args.cache_dir) return 1 if recommended_action_count and not args.return_zero else 0
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'repos_status_page' job") add_argument_debian_repository_urls(parser) add_argument_os_code_name_and_arch_tuples(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') add_argument_output_name(parser) add_argument_output_dir(parser) args = parser.parse_args(argv) return build_debian_repos_status_page( args.debian_repository_urls, args.os_code_name_and_arch_tuples, args.cache_dir, args.output_name, args.output_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'repos_status_page' job") add_argument_debian_repository_urls(parser) add_argument_os_code_name_and_arch_tuples(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') add_argument_output_name(parser) add_argument_output_dir(parser) args = parser.parse_args(argv) return build_debian_repos_status_page(args.debian_repository_urls, args.os_code_name_and_arch_tuples, args.cache_dir, args.output_name, args.output_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Trigger a set of jobs which artifacts are missing in ' + 'the repository') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_missing_only(parser) add_argument_source_only(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') args = parser.parse_args(argv) return trigger_release_jobs( args.config_url, args.rosdistro_name, args.release_build_name, args.missing_only, args.source_only, args.cache_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'release_status_page' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_debian_repository_urls(parser, nargs=3) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') add_argument_output_dir(parser) args = parser.parse_args(argv) return build_release_status_page( args.config_url, args.rosdistro_name, args.release_build_name, args.debian_repository_urls[0], args.debian_repository_urls[1], args.debian_repository_urls[2], args.cache_dir, args.output_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Check if the sync criteria are matched to sync ' + 'packages from the building to the testing repo') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_os_code_name(parser) add_argument_arch(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') args = parser.parse_args(argv) success = check_sync_criteria(args.config_url, args.rosdistro_name, args.release_build_name, args.os_code_name, args.arch, args.cache_dir) return 0 if success else 1
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Check if the sync criteria are matched to sync ' + 'packages from the building to the testing repo') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_os_code_name(parser) add_argument_arch(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') args = parser.parse_args(argv) success = check_sync_criteria( args.config_url, args.rosdistro_name, args.release_build_name, args.os_code_name, args.arch, args.cache_dir) return 0 if success else 1
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Generate the release status page') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_cache_dir(parser, '/tmp/debian_repo_cache') add_argument_output_dir(parser) parser.add_argument( '--copy-resources', action='store_true', help='Copy the resources instead of using symlinks') args = parser.parse_args(argv) return build_release_status_page( args.config_url, args.rosdistro_name, args.release_build_name, args.cache_dir, args.output_dir, copy_resources=args.copy_resources)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Trigger a set of jobs which artifacts are missing in ' + 'the repository') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_missing_only(parser) add_argument_source_only(parser) add_argument_not_failed_only(parser) add_argument_cause(parser) add_argument_groovy_script(parser) add_argument_cache_dir(parser, '/tmp/debian_repo_cache') args = parser.parse_args(argv) return trigger_release_jobs( args.config_url, args.rosdistro_name, args.release_build_name, args.missing_only, args.source_only, args.cache_dir, cause=args.cause, groovy_script=args.groovy_script, not_failed_only=args.not_failed_only)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description='Generate the release status page') add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') add_argument_cache_dir(parser, '/tmp/debian_repo_cache') add_argument_output_dir(parser) parser.add_argument('--copy-resources', action='store_true', help='Copy the resources instead of using symlinks') args = parser.parse_args(argv) return build_release_status_page(args.config_url, args.rosdistro_name, args.release_build_name, args.cache_dir, args.output_dir, copy_resources=args.copy_resources)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'repos_status_page' job") add_argument_debian_repository_urls(parser) parser.add_argument( '--os-code-name-and-arch-tuples', nargs='+', required=True, help="The colon separated tuple containing an OS code name and an " + "architecture (e.g. 'trusty:amd64')") add_argument_cache_dir(parser, '/tmp/debian_repo_cache') parser.add_argument( '--output-name', required=True, help='The name of the generated html file (without the extensions)') add_argument_output_dir(parser) args = parser.parse_args(argv) return build_debian_repos_status_page( args.debian_repository_urls, args.os_code_name_and_arch_tuples, args.cache_dir, args.output_name, args.output_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'repos_status_page' job") add_argument_rosdistro_name(parser) add_argument_debian_repository_urls(parser) add_argument_os_code_name_and_arch_tuples(parser, required=False) add_argument_os_name_and_os_code_name_and_arch_tuples(parser, required=False) add_argument_cache_dir(parser, '/tmp/package_repo_cache') add_argument_output_name(parser) add_argument_output_dir(parser) args = parser.parse_args(argv) # TODO: Remove when --os-code-name-and-arch-tuples is removed if not args.os_name_and_os_code_name_and_arch_tuples: parser.error( 'the following arguments are required: --os-name-and-os-code-name-and-arch-tuples') return build_repos_status_page( args.rosdistro_name, args.debian_repository_urls, args.os_name_and_os_code_name_and_arch_tuples, args.cache_dir, args.output_name, args.output_dir)
def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser( description="Run the 'check_sync_criteria' job") add_argument_config_url(parser) add_argument_rosdistro_name(parser) add_argument_build_name(parser, 'release') parser.add_argument('os_name', nargs='?', help='An OS name from the build file') add_argument_os_name(parser) add_argument_os_code_name(parser) add_argument_arch(parser) add_argument_distribution_repository_urls(parser) add_argument_distribution_repository_key_files(parser) add_argument_cache_dir(parser) add_argument_dockerfile_dir(parser) args = parser.parse_args(argv) if args.os_name is None: print('WARNING: Calling %s without specifying os_name is deprecated' % argv[0], file=sys.stderr) args.os_name = 'ubuntu' data = copy.deepcopy(args.__dict__) data.update({ 'distribution_repository_urls': args.distribution_repository_urls, 'distribution_repository_keys': get_distribution_repository_keys( args.distribution_repository_urls, args.distribution_repository_key_files), 'uid': get_user_id(), }) create_dockerfile('release/release_check_sync_criteria_task.Dockerfile.em', data, args.dockerfile_dir)