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.
Best approach will be to use gradle release plugin for this. Using this you can do automatic version inclement version in your manifest file. You can have a look here
You can use it for tagging your source tree as well for different versions.