Skip to content

Commit

Permalink
remove parameters 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 fcedf85 commit 62d381b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions vars/validateArtifacts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,9 @@ void call(Map args = [:]) {
sh([
'${WORKSPACE}/validation.sh',
args.version ? "--version ${args.version}" : null,
args."file-path" ? "--file-path ${args.file-path}" : 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."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."validate-digest-only" ? '--validate-digest-only' : null,
args."using-staging-artifact-only" ? '--using-staging-artifact-only' : null
args.projects ? "--projects ${args.projects}" : null
].join(' '))
}

0 comments on commit 62d381b

Please sign in to comment.