Skip to content

Commit ac7a498

Browse files
authored
Pass job name and commit hash to firebase UI (#2794)
1 parent f76b56b commit ac7a498

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.circleci/config.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ commands:
262262
--test << parameters.module_target >>/build/outputs/apk/androidTest/debug/<< parameters.module_target >>-debug-androidTest.apk \
263263
--device model=blueline,version=28,locale=en,orientation=portrait \
264264
--timeout 45m --use-orchestrator --no-record-video --num-flaky-test-attempts 1 \
265-
--num-uniform-shards 3
265+
--num-uniform-shards 3 \
266+
--client-details matrixLabel="${CIRCLE_JOB} ${CIRCLE_SHA1:0:6}"
266267
else
267268
if << parameters.multiple_devices >> ; then
268269
gcloud beta firebase test android run --type instrumentation \
@@ -273,14 +274,16 @@ commands:
273274
--device model=redfin,version=30,locale=en,orientation=portrait \
274275
--device model=oriole,version=33,locale=en,orientation=portrait \
275276
--timeout 45m --use-orchestrator --no-record-video --num-flaky-test-attempts 1 \
276-
--num-uniform-shards 4
277+
--num-uniform-shards 4 \
278+
--client-details matrixLabel="${CIRCLE_JOB} ${CIRCLE_SHA1:0:6}"
277279
else
278280
gcloud beta firebase test android run --type instrumentation \
279281
--app << parameters.app_target >>/build/outputs/apk/debug/<< parameters.app_target >>-debug.apk \
280282
--test << parameters.module_target >>/build/outputs/apk/androidTest/debug/<< parameters.module_target >>-debug-androidTest.apk \
281283
--device model=redfin,version=30,locale=en,orientation=portrait \
282284
--timeout 45m --use-orchestrator --no-record-video --num-flaky-test-attempts 1 \
283-
--num-uniform-shards 4
285+
--num-uniform-shards 4 \
286+
--client-details matrixLabel="${CIRCLE_JOB} ${CIRCLE_SHA1:0:6}"
284287
fi
285288
fi
286289
fi
@@ -305,12 +308,14 @@ commands:
305308
--device model=Pixel2,version=29,locale=en,orientation=portrait \
306309
--device model=redfin,version=30,locale=en,orientation=portrait \
307310
--device model=oriole,version=33,locale=en,orientation=portrait \
308-
--timeout 90s
311+
--timeout 90s \
312+
--client-details matrixLabel="${CIRCLE_JOB} ${CIRCLE_SHA1:0:6}"
309313
else
310314
gcloud firebase test android run --type robo \
311315
--app app/build/outputs/apk/release/app-release.apk \
312316
--device model=redfin,version=30,locale=en,orientation=portrait \
313-
--timeout 90s
317+
--timeout 90s \
318+
--client-details matrixLabel="${CIRCLE_JOB} ${CIRCLE_SHA1:0:6}"
314319
fi
315320
fi
316321

0 commit comments

Comments
 (0)