Restore the release number from the regex, add optional spaces btw tag and release.

This commit is contained in:
Manuele Simi 2020-06-12 14:29:08 -04:00
parent 32570f5f72
commit 0ba44265ea
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -183,7 +183,7 @@ String extract(repo_url, log_content, tag, gCube_release_version, component) {
println "Changelong content: ${log_content}"
if (log_content.startsWith('Missing CHANGELOG.md'))
return log_content + " at ${repo_url}"
def matcher = ("${log_content}" =~ /(?is)\[v$tag](.*?)##\s+\[v.*?\]/)
def matcher = ("${log_content}" =~ /(?is)\[v$tag\]\s*\[r$gCube_release_version\](.*?)##\s+\[v.*?\]/)
if (!matcher.find()) {
return "Tags ${tag} / ${gCube_release_version} not found in CHANGELOG.md at ${repo_url}"
}