Application is automatically building by jenkins after successful push, but version is always 1.0. Instead of \"0\" I want to insert number of corresponding build in jenkins: 1.
the configuration at the build.gradle should be
defaultConfig { ... versionName System.getenv("APP_VERSION") as String ?: "3.0.0 (Default)" ... }
Jenkins Configuration for parse the build parameter