Fix -dirty suffix of 1.7.10 build on CI

This commit is contained in:
Jonas Herzig
2019-05-07 12:49:53 +02:00
parent d54905713f
commit f1527c51fe
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ if (releaseCommit == currentCommit) {
def diff = command('git', 'log', '--format=oneline', "$releaseCommit..$currentCommit").size()
version = "$latestVersion-$diff-g${currentCommit.substring(0, 7)}"
}
if (gitDescribe().endsWith('*')) {
if (gitDescribe().endsWith('*') && !project.hasProperty('ignoreDirty')) {
version = "$version-dirty"
}