Hi, I'm using env singleton to store variables to be used at later stage in same pipeline. It is working nice but documentation about env is confusing.
1) https://www.cloudbees.com/blog/top-10-best-practices-jenkins-pipeline-plugin - Don’t: Set environment variables with env global variable 2) https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-withenv-code-set-environment-variables - See the documentation for the env singleton for more information on environment variables. It looks to me that env is a singleton to a single build - not a singleton to Jenkins instance. I see an point that withEnv is preferred in some places but saying don't use env without explaining why is confusing. Regards Kamil -- 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/33b4a118-4b92-41cc-9b59-8ef70ff11d68%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
