Do not match if the changelog is missing.
This commit is contained in:
parent
9a376d134c
commit
1578253f69
|
@ -181,9 +181,11 @@ String get_changelog(repo_name,repo_url) {
|
|||
*/
|
||||
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
|
||||
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 the CHANGELOG.md at ${repo_url}"
|
||||
return "Tags ${tag} / ${gCube_release_version} not found in CHANGELOG.md at ${repo_url}"
|
||||
}
|
||||
assert matcher[0][1]: "Missing release notes for ${component}"
|
||||
return matcher[0][1]
|
||||
|
|
Loading…
Reference in New Issue