1
0
Fork 0

Write dependencies out as an artifact

master
Michael Droettboom 2019-04-24 14:42:06 -04:00 committed by Jeff Boek
parent a1d32127ab
commit 44fb58546c
1 changed files with 26 additions and 0 deletions

View File

@ -190,6 +190,32 @@ class TaskBuilder(object):
},
)
def craft_dependencies_task(self):
# Output the dependencies to an artifact. This is used by the
# telemetry probe scraper to determine all of the metrics that
# Fenix might send (both from itself and any of its dependent
# libraries that use Glean).
return self._craft_clean_gradle_task(
name='dependencies',
description='Write dependencies to a build artifact',
gradle_task='app:dependencies --configuration implementation > dependencies.txt',
treeherder={
'jobKind': 'test',
'machine': {
'platform': 'lint',
},
'symbol': 'dependencies',
'tier': 1,
},
artifacts={
'public/dependencies.txt': {
"type": 'file',
"path": '/opt/fenix/dependencies.txt',
"expires": taskcluster.stringDate(taskcluster.fromNow(DEFAULT_EXPIRES_IN)),
}
}
)
def _craft_clean_gradle_task(
self, name, description, gradle_task, artifacts=None, routes=None, treeherder=None
):