From 02df1d474bc57620f452dce6e5b557030acc08bc Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Tue, 31 Jan 2023 17:52:20 -0800 Subject: [PATCH] block OSD issue creation when more than 1 component fail (#118) Signed-off-by: Rishabh Singh --- vars/createGithubIssue.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vars/createGithubIssue.groovy b/vars/createGithubIssue.groovy index 321b2aa6a..126c21979 100644 --- a/vars/createGithubIssue.groovy +++ b/vars/createGithubIssue.groovy @@ -20,6 +20,13 @@ def call(Map args = [:]){ println(matched.split(" ")[0].trim()) failedComponents.add(matched.split(" ")[0].trim()) } + /* Due to an existing issue with queryWorkbench plugin breaking OSD during bootstrapping, there are false positive + issues getting created against OSD repo. Adding a temp check to ignore issue creation against OSD repo in-case + there are more than 1 failures reported for OSD build. + */ + if (failedComponents.contains("OpenSearch-Dashboards") && failedComponents.size() > 1) { + failedComponents.removeElement("OpenSearch-Dashboards") + } def yamlFile = readYaml(file: "manifests/${INPUT_MANIFEST}") def currentVersion = yamlFile.build.version