Docker command to pass build info as args from gradle to build.gradle at build time.

docker run -e BUILD_NUMBER=%system.BUILD_NUMBER% — rm -v “$PWD”:/home/gradle/project -w /home/gradle/project/X X/androidbuilder:26 gradle -PdisablePreDex -DBUILD_NUMBER=%env.BUILD_NUMBER% -DTEAMCITY_BUILDCONF_NAME=Release assembleGoogleFlavorX assembleGoogleFlavoX assembleGoogleFlavorX assembleAmazonFlavorX assemble VanillaFlavorTuneinFreeX

X equals your Android project name. Let me know if you have questions.

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store