Auto-populate tag

This commit is contained in:
Jim Nicholson 2024-02-01 03:51:58 -08:00
parent 216e0163d3
commit 98faa36026

View File

@ -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}"