cpkg: handles cpkg tags
This commit is contained in:
parent
9c79307ef9
commit
37445a815e
|
@ -64,7 +64,7 @@ def call(Map params = [:]) {
|
||||||
def versionNumber = sh(
|
def versionNumber = sh(
|
||||||
script: "git describe --always ${currentRef}",
|
script: "git describe --always ${currentRef}",
|
||||||
returnStdout: true,
|
returnStdout: true,
|
||||||
).trim()
|
).split('/').last().trim()
|
||||||
|
|
||||||
def isCommitRef = !versionNumber.matches(/^[0-9]+\.[0-9]+\.[0-9]+.*$/)
|
def isCommitRef = !versionNumber.matches(/^[0-9]+\.[0-9]+\.[0-9]+.*$/)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue