cpkg: trim git outputs
This commit is contained in:
parent
8a89c4b3ae
commit
3890170351
|
@ -50,12 +50,12 @@ def call(Map params = [:]) {
|
||||||
returnStdout: true,
|
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
|
// Extract version number from last tag
|
||||||
def lastVersionNumber = lastTag.split('/').last()
|
def lastVersionNumber = lastTag.split('/').last().trim()
|
||||||
result['previousVersionNumber'] = lastVersionNumber
|
result['previousVersionNumber'] = lastVersionNumber
|
||||||
|
|
||||||
println("Last version number is '${lastVersionNumber}'")
|
println("Last version number is '${lastVersionNumber}'")
|
||||||
|
|
Loading…
Reference in New Issue