Auto-populate tag
This commit is contained in:
parent
216e0163d3
commit
98faa36026
@ -2,9 +2,14 @@
|
|||||||
|
|
||||||
void call(Map config = [:]) {
|
void call(Map config = [:]) {
|
||||||
Map defaults = [
|
Map defaults = [
|
||||||
artifacts: [],
|
artifacts: []
|
||||||
tag: 'Unknown'
|
|
||||||
]
|
]
|
||||||
|
try {
|
||||||
|
defaults.tag = GIT_TAG
|
||||||
|
}
|
||||||
|
catch (groovy.lang.MissingPropertyException e) {
|
||||||
|
defaults.tag = 'Unknown'
|
||||||
|
}
|
||||||
Map runConfig = defaults + config
|
Map runConfig = defaults + config
|
||||||
|
|
||||||
echo "${runConfig}"
|
echo "${runConfig}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user