docker-plugin 1.0.4 & 1.1
Jenkins 2.73.2 & 2.73.3
- Visit /configure
- Add a Docker Cloud
- Add a Docker Agent Template
- Under "Node Properties", choose "Environment variables"
- Create an environment variable
- Press "Apply" to save the config
- Reload the page
- Navigate to the Docker Agent Template
- See that the environment variable defined has disappeared
The environment variable is retained when loading the global configuration.
Environment variables are saved correctly when using the plugin, and appear in the created Docker containers as expected — they just don't re-appear when editing the global configuration.