fix: tag based on sort for head
All checks were successful
test — Successful
lint — Successful
All checks were successful
test — Successful
lint — Successful
This commit is contained in:
parent
56c4bae4d1
commit
e6069fa9e7
@ -59,8 +59,10 @@ def semantic(
|
|||||||
}
|
}
|
||||||
|
|
||||||
def semanticGetVersion() {
|
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 version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user