Bug 1808607 - part 4: Delete `version-bump` task for already being covered existing kind
parent
75e9aaf990
commit
cf962f5d9d
@ -1,41 +0,0 @@
|
||||
# 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: fenix_taskgraph.loader.multi_dep:loader
|
||||
|
||||
transforms:
|
||||
- fenix_taskgraph.transforms.multi_dep:transforms
|
||||
- fenix_taskgraph.transforms.version_bump:transforms
|
||||
- taskgraph.transforms.task:transforms
|
||||
|
||||
kind-dependencies:
|
||||
- push-apk
|
||||
|
||||
primary-dependency: push-apk
|
||||
|
||||
group-by: build-type
|
||||
|
||||
only-for-build-types:
|
||||
- beta
|
||||
- release
|
||||
|
||||
job-template:
|
||||
attributes:
|
||||
shipping_phase: ship
|
||||
description: Fenix version bump/tag
|
||||
worker-type: tree
|
||||
worker:
|
||||
bump: true
|
||||
bump-files: ["version.txt"]
|
||||
push:
|
||||
by-level:
|
||||
"3": true
|
||||
# If you set the following line to true, you need to grant write access
|
||||
# to https://github.com/moz-releng-automation-stage on your
|
||||
# fork.
|
||||
default: false
|
||||
|
||||
treeherder:
|
||||
job-symbol: vb
|
||||
kind: build
|
@ -1,40 +0,0 @@
|
||||
# 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/.
|
||||
"""
|
||||
Apply some defaults and minor modifications to the jobs defined in the version bump kind
|
||||
kind.
|
||||
"""
|
||||
|
||||
from taskgraph.transforms.base import TransformSequence
|
||||
from taskgraph.util.schema import resolve_keyed_by
|
||||
|
||||
|
||||
transforms = TransformSequence()
|
||||
|
||||
|
||||
@transforms.add
|
||||
def resolve_keys(config, tasks):
|
||||
for task in tasks:
|
||||
for key in ("worker.push",):
|
||||
resolve_keyed_by(
|
||||
task,
|
||||
key,
|
||||
item_name=task["name"],
|
||||
**{
|
||||
"build-type": task["attributes"]["build-type"],
|
||||
"level": config.params["level"],
|
||||
}
|
||||
)
|
||||
yield task
|
||||
|
||||
|
||||
@transforms.add
|
||||
def build_worker_definition(config, tasks):
|
||||
for task in tasks:
|
||||
worker_definition = {
|
||||
"branch": config.params["head_ref"],
|
||||
}
|
||||
task["worker"].update(worker_definition)
|
||||
|
||||
yield task
|
Loading…
Reference in New Issue