Fix nested if
This commit is contained in:
parent
d709c036ce
commit
7c5fa1605e
@ -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 """
|
||||
|
||||
Loading…
Reference in New Issue
Block a user