I do not know how correct the question is, but you need to do so that when the build is going to somehow pull up information about the commit from which this build is being done, so that it can be tracked if a bug appears then in which version ...
How can you do this?
.properties
file when building it. You can even bat file. - Nofate ♦gitlab
- Aleksey Timoshchenkogradle
- Aleksey Timoshchenkogit rev-parse HEAD
and write the value to the right place. - Nofate ♦