17 lines
306 B
Groovy
17 lines
306 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
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}"
|
|
}
|