def init_argument_parser(parser): parser.add_argument('--hal_nightly_bucket_uri', default='', help='The URI of the bucket to record the version and commit at which we built Halyard.') parser.add_argument('--output_built_halyard_version', default='', help='A file path to record the last built Halyard version in.') # Don't need to init args for Annotator since BomGenerator extends it. BomGenerator.init_argument_parser(parser) Builder.init_argument_parser(parser)
def init_argument_parser(parser): parser.add_argument( '--hal_nightly_bucket_uri', default='', help= 'The URI of the bucket to record the version and commit at which we built Halyard.' ) # Don't need to init args for Annotator since BomGenerator extends it. BomGenerator.init_argument_parser(parser) Builder.init_argument_parser(parser)
def main(): """Build a Spinnaker release to be validated by Citest. """ parser = argparse.ArgumentParser() init_argument_parser(parser) options = parser.parse_args() bom_generator = BomGenerator(options) bom_generator.determine_and_tag_versions() halyard_bump = bom_generator.determine_and_tag_halyard() bom_generator.write_component_version_files() if options.container_builder == 'gcb': bom_generator.write_container_builder_gcr_config() elif options.container_builder == 'gcb-trigger': bom_generator.write_gcb_trigger_version_files() elif options.container_builder == 'docker': bom_generator.write_docker_version_files() else: raise NotImplementedError('container_builder="{0}"' .format(options.container_builder)) Builder.do_build(options, build_number=options.build_number, container_builder=options.container_builder, sync_branch=options.branch) # Load version information into memory and write BOM to disk. Don't publish yet. bom_generator.write_bom() bom_generator.publish_microservice_configs() __record_halyard_nightly_version(halyard_bump, options) bom_generator.publish_boms() bom_generator.generate_changelog()
def main(): """Build a Spinnaker release to be validated by Citest. """ parser = argparse.ArgumentParser() init_argument_parser(parser) options = parser.parse_args() annotator = Annotator(options) __annotate_component(annotator, 'halyard') bom_generator = BomGenerator(options) bom_generator.determine_and_tag_versions() if options.container_builder == 'gcb': bom_generator.write_container_builder_gcr_config() elif options.container_builder == 'docker': bom_generator.write_docker_version_files() else: raise NotImplementedError('container_builder="{0}"' .format(options.container_builder)) Builder.do_build(options, build_number=options.build_number, container_builder=options.container_builder) # Load version information into memory and write BOM to disk. Don't publish yet. bom_generator.write_bom() bom_generator.publish_microservice_configs() bom_generator.publish_boms() bom_generator.generate_changelog()
def init_argument_parser(parser): # Don't need to init args for Annotator since BomGenerator extends it. BomGenerator.init_argument_parser(parser) Builder.init_argument_parser(parser)