How to use the taskgraph.parameters.extend_parameters_schema function in taskgraph

To help you get started, we’ve selected a few taskgraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla-mobile / firefox-tv / taskcluster / firefox_tv_taskgraph / __init__.py View on Github external
def register(graph_config):
    """
    Import all modules that are siblings of this one, triggering decorators in
    the process.
    """
    _import_modules(["worker_types", "target_tasks"])
    extend_parameters_schema({
        Required("head_tag"): Any(text_type, None),
        Required("release_type"): Any(text_type, None),
    })
github mozilla-mobile / fenix / taskcluster / fenix_taskgraph / __init__.py View on Github external
def register(graph_config):
    """
    Import all modules that are siblings of this one, triggering decorators in
    the process.
    """
    _import_modules(["job", "worker_types", "routes", "target_tasks"])
    extend_parameters_schema({
        Required("pull_request_number"): Any(All(int, Range(min=1)), None),
        Required("release_type"): text_type,
        Required("release_version"): text_type,
    })