Restore the release number from the regex, add optional spaces btw tag and release.
This commit is contained in:
parent
32570f5f72
commit
0ba44265ea
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue