A tested variant is image based on jenkins:lts
Jenkinsfile (pipeline) is intended for dodroid project.
Prepare image run sh ./create.sh
Start jenkins on localhost:8080
run sh ./run.sh
Default user/password: admin/admin
The first run will take more time, because android build tools and libraries are not preinstalled.