You can use either of the following ways listed below:
- Use Env Inject Plugin for creating environment variables. Follow this for usage and more details https://github.com/jenkinsci/envinject-plugin
- Navigate below and can add
Manage Jenkins -> Configure System -> Global Properties -> Environment Variables -> Add
