Suppression de la boucle et du découpage de la sortie standard
Cadoles/Jenkins/pipeline/head There was a failure building this commit
Details
Cadoles/Jenkins/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
4ce857ef7c
commit
f16e377911
|
@ -10,16 +10,13 @@ def buildPackageWithCPKG(
|
|||
def result = [:]
|
||||
|
||||
// Retrieve commit tags
|
||||
def commitTags = sh(script: 'git describe --exact-match --abbrev=0', returnStdout: true).split(' ')
|
||||
if (commitTags.length == 0) {
|
||||
def commitTag = sh(script: 'git describe --exact-match --abbrev=0', returnStdout: true)
|
||||
if (commitTag == '') {
|
||||
error 'No build build tags on last commit'
|
||||
}
|
||||
|
||||
// For each tags
|
||||
for (tag in commitTags) {
|
||||
|
||||
// Split tag to retrieve context informations
|
||||
def tagParts = tag.split('/')
|
||||
def tagParts = commitTag.split('/')
|
||||
def packageEnv = tagParts[1]
|
||||
def packageDistrib = tagParts[2]
|
||||
def packageVersion = tagParts[3]
|
||||
|
@ -34,7 +31,7 @@ def buildPackageWithCPKG(
|
|||
sh "rm -rf ${destDir}/*"
|
||||
|
||||
stage("Build ${packageEnv} package (version ${packageVersion}) for ${packageDistrib}") {
|
||||
result.put('tag', tag)
|
||||
result.put('tag', commitTag)
|
||||
result.put('env', packageEnv)
|
||||
result.put('version', packageVersion)
|
||||
result.put('distrib', packageDistrib)
|
||||
|
|
Loading…
Reference in New Issue