diff --git a/automation/taskcluster/lib/tasks.py b/automation/taskcluster/lib/tasks.py index f4c55370b..b2e31dd15 100644 --- a/automation/taskcluster/lib/tasks.py +++ b/automation/taskcluster/lib/tasks.py @@ -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 ):