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
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e49ea9ec-0ec7-4537-bef0-c900bdea6740n%40googlegroups.com.