[Android compile bot] Fix path to GS file name

Bug: skia:8388
Change-Id: Ifb9654439abf252c6e466d568329b151a4915e3f
Reviewed-on: https://skia-review.googlesource.com/c/175588
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
diff --git a/infra/bots/recipes/android_compile.expected/android_compile_trybot_failure.json b/infra/bots/recipes/android_compile.expected/android_compile_trybot_failure.json
index 66ebda6..af1f121 100644
--- a/infra/bots/recipes/android_compile.expected/android_compile_trybot_failure.json
+++ b/infra/bots/recipes/android_compile.expected/android_compile_trybot_failure.json
@@ -22,7 +22,7 @@
     "cmd": [
       "gsutil",
       "cat",
-      "gs://android-compile-tasks/1234-1.json"
+      "gs://android-compile-tasks/cf_x86_phone-eng-1234-1.json"
     ],
     "name": "Get task log links",
     "stdout": "/path/to/tmp/json",
diff --git a/infra/bots/recipes/android_compile.py b/infra/bots/recipes/android_compile.py
index 6939d6b..80dfff8 100644
--- a/infra/bots/recipes/android_compile.py
+++ b/infra/bots/recipes/android_compile.py
@@ -60,7 +60,8 @@
     api.step('Trigger and wait for task on android compile server', cmd=cmd)
   except api.step.StepFailure as e:
     # Add withpatch and nopatch logs as links (if they exist).
-    gs_file = 'gs://android-compile-tasks/%s-%s.json' % (issue, patchset)
+    gs_file = 'gs://android-compile-tasks/%s-%s-%s.json' % (
+        lunch_target, issue, patchset)
     step_result = api.step('Get task log links',
                            ['gsutil', 'cat', gs_file],
                            stdout=api.json.output())