From 0b52cc3edf1898f64682337c6a4a53562bc8c1b5 Mon Sep 17 00:00:00 2001 From: Zelin Hao Date: Thu, 12 Dec 2024 13:46:30 -0800 Subject: [PATCH] Add parameters list Signed-off-by: Zelin Hao --- build.gradle | 2 +- vars/runSmokeTestScript.groovy | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index fe0ad776..4d4f319f 100644 --- a/build.gradle +++ b/build.gradle @@ -128,7 +128,7 @@ jacocoTestReport { } } -String version = '8.0.1' +String version = '8.1.0' task updateVersion { doLast { diff --git a/vars/runSmokeTestScript.groovy b/vars/runSmokeTestScript.groovy index 84b8ba85..a628c003 100644 --- a/vars/runSmokeTestScript.groovy +++ b/vars/runSmokeTestScript.groovy @@ -6,6 +6,15 @@ * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ +/**@ + * Contains logic to execute the smoke test workflow + * + * @param args A map of the following parameters + * @param args.testManifest Test manifest file location + * @param args.buildManifest Build manifest file location + * @param args.jobName Job name that triggered the workflow. 'distribution-build-opensearh' by default. + * @param args.buildId Build ID of the distribution artifacts +*/ void call(Map args = [:]) { String jobName = args.jobName ?: 'distribution-build-opensearch' lib = library(identifier: 'jenkins@main', retriever: legacySCM(scm))