RSA fingerprint change every time a new build is started

谁说我不能喝 提交于 2019-12-31 07:05:08

问题


I have a CI pipeline to build my android app and run instrumented test using gitlab pipelines. My gitlab runner is a ubuntu 16.04 machine running each build in a docker container. I have a physical android device connected via USB to my gitlab runner.

Recently, every time a new build is triggered, I am prompted to allow the RSA fingerprint for the USB device on my android target. The problem is that the fingerprint changes with every build.

I suspect that this is because a new container is created every time a build start.

How can I automatically accept the new fingerprint or prevent the fingerprint from changing?


回答1:


Make contents of $HOME/.android/adbkey and $HOME/.android/adbkey.pub persistent between the runs by mapping the folder or just re-creating the files inside every container instance.



来源:https://stackoverflow.com/questions/47799984/rsa-fingerprint-change-every-time-a-new-build-is-started

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!