Parametrize the regex.

This commit is contained in:
Manuele Simi 2020-06-07 15:34:56 -04:00
parent 6b32291ec1
commit 89bfb24dcd
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ String get_changelog(repo_name) {
*/
String extract(log_content, tag, gCube_release_version, component) {
println "Changelong content: ${log_content}"
def matcher = ("${log_content}" =~ /(?is)(\[v1\.1\.0\]\s+\[r4\.22\.0\](.+?))\[v.*\]/)
def matcher = ("${log_content}" =~ /(?is)(\[v$tag]\s+\[r$gCube_release_version\](.+?))\[v.*\]/)
if (!matcher.find()) {
return 'NA'
}