cpkg: trim git outputs

This commit is contained in:
wpetit 2020-03-24 10:52:32 +01:00
parent 8a89c4b3ae
commit 3890170351

View File

@ -50,12 +50,12 @@ def call(Map params = [:]) {
returnStdout: true,
)
result['previousTag'] = lastTag
result['previousTag'] = lastTag.trim()
println("Last tag is '${lastTag}'")
println("Last tag is '${result['previousTag']}'")
// Extract version number from last tag
def lastVersionNumber = lastTag.split('/').last()
def lastVersionNumber = lastTag.split('/').last().trim()
result['previousVersionNumber'] = lastVersionNumber
println("Last version number is '${lastVersionNumber}'")