Bug 1527313: [taskgraph] Use `artifact-reference` in upload-sources task; r=Callek

Differential Revision: https://phabricator.services.mozilla.com/D62341

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Prince 2020-02-11 19:46:44 +00:00
Родитель 8ebd39a1ad
Коммит ec197b17fa
2 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -27,7 +27,7 @@ job-template:
max-run-time: 600
run:
using: mach
mach: python build/upload_generated_sources.py ${ARTIFACT_URL}
mach: {artifact-reference: "python build/upload_generated_sources.py <build/public/build/target.generated-files.tar.gz>"}
sparse-profile: upload-generated-sources
scopes:
- secrets:get:project/releng/gecko/build/level-{level}/gecko-generated-sources-upload

Просмотреть файл

@ -9,7 +9,6 @@ taskcluster/ci/upload-generated-sources/kind.yml, into an actual task descriptio
from __future__ import absolute_import, print_function, unicode_literals
from taskgraph.transforms.base import TransformSequence
from taskgraph.util.taskcluster import get_artifact_url
transforms = TransformSequence()
@ -38,12 +37,6 @@ def add_task_info(config, jobs):
job['treeherder']['tier'] = dep_th['tier']
if dep_th['symbol'] != "N":
job['treeherder']['symbol'] = "Ugs{}".format(dep_th['symbol'])
# Add an environment variable pointing at the artifact from the build.
artifact_url = get_artifact_url('<build>',
'public/build/target.generated-files.tar.gz')
job['worker'].setdefault('env', {})['ARTIFACT_URL'] = {
'task-reference': artifact_url
}
job['run-on-projects'] = dep_task.attributes.get('run_on_projects')
yield job