cpkg: handles cpkg tags

This commit is contained in:
wpetit 2022-09-27 11:02:57 +02:00
parent 9c79307ef9
commit 37445a815e

View File

@ -64,7 +64,7 @@ def call(Map params = [:]) {
def versionNumber = sh(
script: "git describe --always ${currentRef}",
returnStdout: true,
).trim()
).split('/').last().trim()
def isCommitRef = !versionNumber.matches(/^[0-9]+\.[0-9]+\.[0-9]+.*$/)