Configuring global settings in Jenkins
Configure system is the place where settings can be done, and it is useful. You can configure SMTP server details, SonarQube server details, variables, and so on.
Getting ready
To configure global settings and paths, we need to go to Configure System
in the Jenkins dashboard.
How to do it...
- Go to the Jenkins dashboard.
- Click on
Manage Jenkins
. - Click on
Configure System
. - Verify the
Home directory
available:

- In the
Configure System
page, we can defineEnvironment variables
too so that it can be used during the execution of build jobs. - For example, we can the
ANDROID SDK
path inEnvironment variables
in to set Continuous Integration for Android Apps.

- Another important configuration available on the same page is
Jenkins Location
. You can specify the HTTP address of the Jenkins installation, as Jenkins cannot reliably detect such aJenkins URL
from within itself:

There's more...
There are some important configurations that you need to do here in the Configure System
section, such as SCM Polling
, E-mail Notification
, Extended E-mail Notification
, Git plugin
, Disk usage
, Quality Gates - SonarQube
, Build Pipeline Plugin
, Copyartifact: Upstream build that triggered this job
, Audit Trail
, SonarQube servers
, and so on.