I have declarative pipeline used and have a problem to map key-value there as I can't use "def" within pipeline. I want to achieve something like this:
def pathTag = [:]
pathTag['myKey'] = 'myValue'
I will use then "pathTag" later on as input for Jenkins plugin (Influxdb).
Has anyone idea how to do it? Thank you.