We know that different environments such as dev, test, production, and so on require different configurations.
Install the plugin from the Jenkins dashboard:
The EnvInject
plugin provides a facility to have an isolated environment for different build jobs. The EnvInject
plugin injects environment variables at node startup, before and/or after a SCM checkout for a run, as a build step for a run, and so on. Select Inject environment variables to the build process
specific to the build job:
Note
For more details on EnvInject plugin, visit https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin.