forked from mirrors/gecko-dev
Most of this patch is ripping `command-context` out from Gecko. The other parts are the fairly straightforward conversions from `command-context` to `task-context`. Differential Revision: https://phabricator.services.mozilla.com/D186822
128 lines
4.1 KiB
YAML
128 lines
4.1 KiB
YAML
# 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: gecko_taskgraph.loader.transform:loader
|
|
|
|
transforms:
|
|
- gecko_taskgraph.transforms.attribution:transforms
|
|
- taskgraph.transforms.task_context
|
|
- gecko_taskgraph.transforms.job:transforms
|
|
- gecko_taskgraph.transforms.task:transforms
|
|
|
|
kind-dependencies:
|
|
# Windows
|
|
- repackage-signing
|
|
|
|
job-defaults:
|
|
description: Attribute release builds
|
|
shipping-phase: promote
|
|
# never run as part of CI
|
|
run-on-projects: []
|
|
worker-type: b-linux-gcp
|
|
fetches:
|
|
repackage-signing:
|
|
- target.installer.exe
|
|
attributes:
|
|
release_artifacts:
|
|
- public/build/target.installer.exe
|
|
treeherder:
|
|
symbol: Attr
|
|
kind: other
|
|
tier: 1
|
|
task-context:
|
|
from-file: browser/installer/attribution.yml
|
|
substitution-fields:
|
|
- run.command
|
|
worker:
|
|
artifacts:
|
|
- name: public/build
|
|
type: directory
|
|
path: /builds/worker/artifacts
|
|
docker-image:
|
|
in-tree: "partner-repack"
|
|
chain-of-trust: true
|
|
# Each task only processes one installer...this should be quick.
|
|
max-run-time: 600
|
|
run:
|
|
using: run-task
|
|
cwd: "{checkout}"
|
|
command:
|
|
- ./mach
|
|
- python
|
|
- python/mozrelease/mozrelease/attribute_builds.py
|
|
- --attribution
|
|
- dlsource={attribution_code[json][dlsource]}
|
|
- --output
|
|
- /builds/worker/artifacts
|
|
# All jobs require attribution of target.installer.exe. Some may require
|
|
# attribution of other files, which they can append themselves.
|
|
- --input
|
|
- /builds/worker/fetches/target.installer.exe
|
|
|
|
jobs:
|
|
win32-devedition/opt:
|
|
label: attribution-win32-devedition/opt
|
|
shipping-product: devedition
|
|
attributes:
|
|
build_platform: win32-devedition
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win32-devedition/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win32-devedition/opt
|
|
|
|
win32-shippable/opt:
|
|
label: attribution-win32-shippable/opt
|
|
shipping-product: firefox
|
|
attributes:
|
|
build_platform: win32-shippable
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win32-shippable/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win32-shippable/opt
|
|
|
|
win64-devedition/opt:
|
|
label: attribution-win64-devedition/opt
|
|
shipping-product: devedition
|
|
attributes:
|
|
build_platform: win64-devedition
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win64-devedition/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win64-devedition/opt
|
|
|
|
win64-shippable/opt:
|
|
label: attribution-win64-shippable/opt
|
|
shipping-product: firefox
|
|
attributes:
|
|
build_platform: win64-shippable
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win64-shippable/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win64-shippable/opt
|
|
|
|
win64-aarch64-shippable/opt:
|
|
label: attribution-win64-aarch64-shippable/opt
|
|
shipping-product: firefox
|
|
attributes:
|
|
build_platform: win64-aarch64-shippable
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win64-aarch64-shippable/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win64-aarch64-shippable/opt
|
|
|
|
win64-aarch64-devedition/opt:
|
|
label: attribution-win64-aarch64-devedition/opt
|
|
shipping-product: devedition
|
|
attributes:
|
|
build_platform: win64-aarch64-devedition
|
|
build_type: opt
|
|
treeherder:
|
|
platform: win64-aarch64-devedition/opt
|
|
dependencies:
|
|
repackage-signing: repackage-signing-win64-aarch64-devedition/opt
|