Skip to content

Commit

Permalink
Bump lib version and add parameter description
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Feb 23, 2024
1 parent 72be338 commit 6407739
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jacocoTestReport {
}
}

String version = '6.3.1'
String version = '6.3.2'

task updateVersion {
doLast {
Expand Down
16 changes: 15 additions & 1 deletion vars/validateArtifacts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@

/**
Wrapper that runs validation.sh script with provided args.
@param Map[<any>] <Required> - Any arguments that you want to be passed to validation.sh script. eg: version: 1.0.0 will be passed as --version 1.0.0
[
@param Map[version] <Required> - Version of the opensearch artifact that needs to be validated.
@param Map[file_path] <Required> - Url paths to Opensearch or OpenSearch DashBoards artifacts.
Note: These parameters are mutually exclusive. Provide either of 'version' or 'file_path' parameters, to proceed with the validation.
]
@param Map[distribution] <Optional> - Choose distribution type among [tar(default),rpm,yum,docker].
@param Map[architecture] <Optional> - Select the architecture type among [x64(default) and arm64].
@param Map[platform] <Optional> - The distribution platform.
@param Map[projects] <Optional> - Specify the project type OpenSearch or Both(OpenSearch and OpenSearch-DashBoards).
@param Map[docker_source] <Optional> - Specify the docker source from [DockerHub(default), ECR] to pull the docker image.
@param Map[os_build_number]<Optional> - Specify Opensearch build number from opensearchstaging if required.
@param Map[osd_build_number]<Optional> - Specify Opensearch-Dashboard build number from opensearchstaging if required.
@param Map[artifact_type] <Optional> - Select the artifact type among [staging and production].
@param Map[allow_http] <Optional> - Supports validation of artifacts in which security plugin is absent.architecture.
@param Map[docker_args] <Optional> - Select either of [using-staging-artifact-only', 'validate-digest-only] for docker validation.
*/
void call(Map args = [:]) {
if (!fileExists("$WORKSPACE/validation.sh")) {
Expand Down

0 comments on commit 6407739

Please sign in to comment.