Skip to content

Commit

Permalink
change parameter names in groovy library
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 21, 2024
1 parent 62d381b commit e1258d5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions vars/validateArtifacts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@ void call(Map args = [:]) {
println("Validation.sh script not found in the workspace: ${WORKSPACE}, exit 1")
System.exit(1)
}
else {
println("Script file exists")}

sh([
'${WORKSPACE}/validation.sh',
'./validation.sh',
args.version ? "--version ${args.version}" : null,
args.distribution ? "-d ${args.distribution}" : null,
args.platform ? "-p ${args.platform}" : null,
args.arch ? "-a ${args.arch}" : null,
args.projects ? "--projects ${args.projects}" : null
args.file_path ? "--file-path ${args.file_path}" : null,
args.distribution ? "--distribution ${args.distribution}" : null,
args.platform ? "--platform ${args.platform}" : null,
args.arch ? "--arch ${args.arch}" : null,
args.projects ? "--projects ${args.projects}" : null,
args.docker_source ? "--docker-source ${args.docker_source}" : null,
args.os_build_number ? "--os-build-number ${args.os_build_number}" : null,
args.osd_build_number ? "--osd-build-number ${args.osd_build_number}" : null,
args.artifact_type ? "--artifact-type ${args.artifact_type}" : null,
args.allow_http ? '--allow_http' : null,
args.docker_args ? "${args.artifact_type}" : null,
].join(' '))
}

0 comments on commit e1258d5

Please sign in to comment.