Closed SinTh0r4s closed 2 years ago
Jenkins' Git detects a chmod on build.gradle as a file change and subsequently, adds a .dirty on the version string. This fix works, but is it too hacky? What do you guys think?
build.gradle
.dirty
Fix is fine, only thing you could do better is have it bound to one of the javaCompile tasks or etc. Or perhaps the setupCIWorkspace?
But it must be run before gitVersion() in the next line
gitVersion()
Jenkins' Git detects a chmod on
build.gradle
as a file change and subsequently, adds a.dirty
on the version string. This fix works, but is it too hacky? What do you guys think?