From 3d9f065f59f23d8502569245dfa9137f03d448fd Mon Sep 17 00:00:00 2001 From: Johan Lorenzo Date: Thu, 14 Nov 2019 14:45:37 +0100 Subject: [PATCH] Fix missing Firebase token in nightly and production builds --- taskcluster/fenix_taskgraph/transforms/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taskcluster/fenix_taskgraph/transforms/build.py b/taskcluster/fenix_taskgraph/transforms/build.py index 8dbacb11f..bd372e80b 100644 --- a/taskcluster/fenix_taskgraph/transforms/build.py +++ b/taskcluster/fenix_taskgraph/transforms/build.py @@ -35,6 +35,7 @@ def add_shippable_secrets(config, tasks): if task.pop("include-shippable-secrets", False) and config.params["level"] == "3": build_type = task["attributes"]["build-type"] + gradle_build_type = task["run"]["gradle-build-type"] secret_index = 'project/mobile/fenix/{}'.format(build_type) secrets.extend([{ "key": key, @@ -42,7 +43,7 @@ def add_shippable_secrets(config, tasks): "path": target_file, } for key, target_file in ( ('adjust', '.adjust_token'), - ('firebase', 'app/src/{}/res/values/firebase.xml'.format(build_type)), + ('firebase', 'app/src/{}/res/values/firebase.xml'.format(gradle_build_type)), ('digital_asset_links', '.digital_asset_links_token'), ('leanplum', '.leanplum_token'), ('sentry_dsn', '.sentry_token'),