Fix nested if

This commit is contained in:
Jim Nicholson 2024-02-13 03:43:12 -08:00
parent d709c036ce
commit 7c5fa1605e

View File

@ -17,13 +17,13 @@ void call(Map config = [:], Closure body = { }) {
if (runConfig.artifacts.size() < 1) {
assert runConfig.artifacts : 'Error: No named artifacts to package!'
}
if (runConfig.useHash) {
archiveName = runConfig.name +
runConfig.separator +
(runConfig.useHash ? runConfig.version : runConfig.tag) +
runConfig.separator +
runConfig.extension
}
echo "Will tag result as: ${archiveName}"
sh """