commit | bfe3aca190a48da16e7e8693f14e4769bd7dc773 | [log] [tgz] |
---|---|---|
author | Ivan Udovichenko <iudovichenko@mirantis.com> | Thu Dec 17 21:48:50 2020 +0300 |
committer | Ivan Udovichenko <iudovichenko@mirantis.com> | Fri Dec 18 12:49:14 2020 +0300 |
tree | 55ee9407b917646159070435fb3b56f9993cdeeb | |
parent | 8c78c358986d08e88fac38b4f1050c559225a8b3 [diff] |
[DockerImageScanner] Fix filtering of image key in summary Change-Id: Ia56fb27b8646e00a6933c6e7889a61ebb8009c2e Related-PROD: https://mirantis.jira.com/browse/RE-527
diff --git a/src/com/mirantis/mk/DockerImageScanner.groovy b/src/com/mirantis/mk/DockerImageScanner.groovy index c87f7ca..ec4049a 100644 --- a/src/com/mirantis/mk/DockerImageScanner.groovy +++ b/src/com/mirantis/mk/DockerImageScanner.groovy
@@ -92,7 +92,7 @@ if (!found_key[0] && dict && image_short_name) { dict.each { issue_key_name -> if (!found_key[0]) { - def s = dict[issue_key_name.key]['summary'] =~ /\b${image_short_name}\b/ + def s = dict[issue_key_name.key]['summary'] =~ /(?<=[\/\[])${image_short_name}(?=\])/ if (s) { if (image_full_name) { def d = dict[issue_key_name.key]['description'] =~ /(?m)\b${image_full_name}\b/