No Side Effects
This commit is contained in:
parent
98faa36026
commit
e62916c9f2
@ -4,13 +4,8 @@ void call(Map config = [:]) {
|
|||||||
Map defaults = [
|
Map defaults = [
|
||||||
artifacts: []
|
artifacts: []
|
||||||
]
|
]
|
||||||
try {
|
|
||||||
defaults.tag = GIT_TAG
|
|
||||||
}
|
|
||||||
catch (groovy.lang.MissingPropertyException e) {
|
|
||||||
defaults.tag = 'Unknown'
|
|
||||||
}
|
|
||||||
Map runConfig = defaults + config
|
Map runConfig = defaults + config
|
||||||
|
|
||||||
echo "${runConfig}"
|
echo "Will tag result as: ${runConfig.tag}"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user