def make_task_worker(config, jobs): for job in jobs: valid_beetmover_job = set( job['dependencies'].keys()) == {'build', 'build-signing'} if not valid_beetmover_job: raise NotImplementedError( 'Beetmover-geckoview must have 2 dependencies: build and build-signing. ' 'Got: {}'.format(job['dependencies'])) job['worker'] = { 'artifact-map': generate_beetmover_artifact_map( config, job, **get_geckoview_template_vars( config, job['attributes']['build_platform'], job['attributes'].get('update-channel'), )), 'implementation': 'beetmover-maven', 'release-properties': craft_release_properties(config, job), 'upstream-artifacts': get_geckoview_upstream_artifacts(config, job), } yield job
def get_geckoview_artifacts_to_sign(config, job): upstream_artifacts = get_geckoview_upstream_artifacts(config, job) return [ path for upstream_artifact in upstream_artifacts for path in upstream_artifact['paths'] if not path.endswith('.md5') and not path.endswith('.sha1') ]
def get_geckoview_artifacts_to_sign(config, job): upstream_artifacts = get_geckoview_upstream_artifacts(config, job) return [ path for upstream_artifact in upstream_artifacts for path in upstream_artifact["paths"] if not path.endswith(".md5") and not path.endswith(".sha1") ]
def _get_aar_location(config, job, platform): artifacts_locations = get_geckoview_upstream_artifacts(config, job, platform=platform) aar_locations = [ path for path in artifacts_locations[0]['paths'] if path.endswith('.aar') ] if len(aar_locations) != 1: raise ValueError('Only a single AAR must be given. Got: {}'.format(aar_locations)) return aar_locations[0]
def make_task_worker(config, jobs): for job in jobs: job['worker'] = { 'artifact-map': generate_beetmover_artifact_map( config, job, **get_geckoview_template_vars( config, job['attributes']['build_platform'], job['attributes'].get('update-channel'), ) ), 'implementation': 'beetmover-maven', 'release-properties': craft_release_properties(config, job), 'upstream-artifacts': get_geckoview_upstream_artifacts(config, job), } yield job
def make_task_worker(config, jobs): for job in jobs: job["worker"] = { "artifact-map": generate_beetmover_artifact_map( config, job, **get_geckoview_template_vars( config, job["attributes"]["build_platform"], job["attributes"].get("update-channel"), )), "implementation": "beetmover-maven", "release-properties": craft_release_properties(config, job), "upstream-artifacts": get_geckoview_upstream_artifacts(config, job), } yield job