taskcluster/ci/upload-symbols/kind.yml
author Tom Prince <mozilla@hocat.ca>
Wed, 28 Nov 2018 18:35:19 +0000
changeset 507775 0146ddab71767245ac84916ff0e038567e0e57b1
parent 485347 7c7794653326178cef682b95bb788dc0a9e473d0
child 511145 fb7cfca6ebc3c3510d426a79a212d872356041a5
permissions -rw-r--r--
Bug 1510465: [taskgraph] Use `mach` job type more consistently; r=dustin Differential Revision: https://phabricator.services.mozilla.com/D13158

# 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: taskgraph.loader.single_dep:loader

transforms:
    - taskgraph.transforms.upload_symbols:transforms
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - build

not-for-build-platforms:
    # Address Sanitizer builds don't have symbols to upload.
    - linux64-asan-reporter-nightly/opt
    - win64-asan-reporter-nightly/opt

job-template:
    description: Upload Symbols
    worker-type: aws-provisioner-v1/gecko-{level}-b-linux
    worker:
        docker-image: {in-tree: "lint"}
        max-run-time: 900
        env:
            ARTIFACT_TASKID: {"task-reference": "<build>"}
            # {level} gets replaced in the upload_symbols transform
            SYMBOL_SECRET: "project/releng/gecko/build/level-{level}/gecko-symbol-upload"
    run:
        using: mach
        mach: python toolkit/crashreporter/tools/upload_symbols.py https://queue.taskcluster.net/v1/task/${ARTIFACT_TASKID}/artifacts/public/build/target.crashreporter-symbols-full.zip
        sparse-profile: upload-symbols
    optimization:
        only-if-dependencies-run: null
    scopes:
        - secrets:get:project/releng/gecko/build/level-{level}/gecko-symbol-upload
    run-on-projects:
        by-build-platform:
            .*devedition.*: ['mozilla-beta', 'maple']
            # Only upload symbols for nightlies on most branches.
            .*(?<!-devedition)-nightly: ['all']
            # Allow symbol upload for any build type on try.
            default: ['try']