# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: ac_taskgraph.loader.multi_dep:loader

transforms:
    - ac_taskgraph.transforms.multi_dep:transforms
    - ac_taskgraph.transforms.beetmover:transforms
    - ac_taskgraph.transforms.treeherder:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - build
    - post-signing
    - signing

primary-dependency: signing

only-for-build-types:
    - release
    - nightly

group-by: component


job-template:
    description: Publish component
    maven-destination: 'maven2/org/mozilla/components/{component}/{version}/{artifact_file_name}'
    run-on-tasks-for: []
    treeherder:
        job-symbol:
            by-build-type:
                release: BM-R
                nightly: BM-N
                default: BM-B
        kind: build
    worker:
        action: push-to-maven
        bucket:
            by-build-type:
                release:
                    by-level:
                        '3': maven-production
                        default: maven-staging
                nightly:
                    by-level:
                        '3': maven-nightly-production
                        default: maven-nightly-staging
        beetmover-application-name:
            by-build-type:
                release: components
                nightly: nightly_components
                default: UNDEFINED
    worker-type: beetmover
