How do you handle environment variable management in Jenkins? Could you share an example of using shared environment files or secrets for consistency across stages?
This is related to best practices for managing environment variables in Jenkins pipelines, encompassing shared configuration files or other secret management tools, like HashiCorp Vault, and possibly even Jenkins environment plugins to keep stages consistent and secure. Provide an example to clarify the actual implementation process.