Parametrize the regex.
This commit is contained in:
parent
6b32291ec1
commit
89bfb24dcd
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue