I haven't found any examples of how to do this
instead of this:
pipeline {
agent { label 'docker' }
environment {
ENV1 = 'default'
ENV2 = 'default'
}
I want to do this:
pipeline {
agent { label 'docker' }
environment {
for (env in envs) {
env.name = env.value
}
}
maybe I can generate a map before the `pipeline{}` directive and pass it to `environment{}` somehow? I dont want to do this inside of a stage I want this at the top level environment directive for all stages