No Side Effects

This commit is contained in:
Jim Nicholson 2024-02-01 03:59:45 -08:00
parent 98faa36026
commit e62916c9f2

View File

@ -4,13 +4,8 @@ void call(Map config = [:]) {
Map defaults = [
artifacts: []
]
try {
defaults.tag = GIT_TAG
}
catch (groovy.lang.MissingPropertyException e) {
defaults.tag = 'Unknown'
}
Map runConfig = defaults + config
echo "${runConfig}"
echo "Will tag result as: ${runConfig.tag}"
}