How can i update the version build number everyday. I have a version format "${BUILD_TIMESTAMP}.${BUILDS_ALL_TIME}", my build version are based on the date and the build number.
So i want to reset (or make it start from 1) the Build number everyday as the date changes.
Ex: If today i have five builds then the version will "2019-09-10.5" and for tomorrow the if its the first build then i want the value to be "2019-09-11.1" but using the above values i'm getting the next build number in the next day build. i.e version="2019-09-11.6"
So How can i reset or make it to 1 every next day for the first Build.
Have tried using different options of the version build number but nothing worked as per my requirement