diff --git a/build.gradle b/build.gradle index 8613d4a2..b5404de2 100644 --- a/build.gradle +++ b/build.gradle @@ -127,7 +127,7 @@ jacocoTestReport { } } -String version = '6.5.0' +String version = '6.5.1' task updateVersion { doLast { diff --git a/vars/gradleCheckFlakyTestChecker.groovy b/vars/gradleCheckFlakyTestDetector.groovy similarity index 91% rename from vars/gradleCheckFlakyTestChecker.groovy rename to vars/gradleCheckFlakyTestDetector.groovy index 68a3f68d..0b7cd4e0 100644 --- a/vars/gradleCheckFlakyTestChecker.groovy +++ b/vars/gradleCheckFlakyTestDetector.groovy @@ -7,6 +7,11 @@ * compatible open source license. */ +/** Library to detect Gradle Check flaky tests and create GitHub issue in OpenSearch repository. + @param Map args = [:] args A map of the following parameters + @param args.issueLabels - GitHub labels that will be added to the issue created in OpenSearch repository. + */ + import gradlecheck.FetchPostMergeFailedTestClass import gradlecheck.FetchPostMergeTestGitReference import gradlecheck.FetchPostMergeFailedTestName @@ -49,7 +54,7 @@ void call(Map args = [:]) { repoUrl: "https://github.com/opensearch-project/OpenSearch", issueTitle: "[AUTOCUT] Gradle Check Flaky Test Report for ${failedTest}", issueBodyFile: "${failedTest}.md", - label: 'autocut,>test-failure', + label: args.issueLabels, issueEdit: true ) }