fix: tag based on sort for head
All checks were successful
test — Successful
lint — Successful

This commit is contained in:
Daniel Weissmall 2025-11-12 18:47:19 +03:00
parent 56c4bae4d1
commit e6069fa9e7

View File

@ -59,8 +59,10 @@ def semantic(
}
def semanticGetVersion() {
def version = sh(script: 'git describe --tags --abbrev=0', returnStdout: true).trim()
// def version = sh(script: 'git describe --tags --abbrev=0', returnStdout: true).trim()
def version = sh(script: 'git tag --points-at HEAD --sort=-version:refname | head -n1', returnStdout: true).trim()
return version
}
return this;