Adding GIT Credentials in Jenkins (original) (raw)

Last Updated : 8 Apr, 2026

Adding Git credentials to Jenkins securely stores authentication details so Jenkins can access Git repositories. It allows Jenkins to clone, pull, or push code during automated build and deployment processes.

**Configuring Jenkins Credentials For Git

Step 1: Open Jenkins Dashboard

Open the Jenkins Dashboard. On the left-hand side of the screen, click on the Manage Jenkins option.

image_1

Step 2: Access Plugin Manager

Click on Manage Plugins (or Plugins in newer versions) to manage installed plugins.

image_2

**Step 3: Search for Credentials Plugin

Go to the Available tab and search for Credentials in the search bar.

image_3

Step 4: Install Credentials Plugin

Select and install the Credentials Plugin (usually pre-installed in modern Jenkins).

image4

Step 5: Open Credentials Section

Return to the Jenkins Dashboard and click on Manage Jenkins again. Scroll down to the Security section and click on Credentials (or Manage Credentials).

Step 6: Select Global Domain

In the Credentials screen, look for the Stores scoped to Jenkins section. Click on the (global) domain link located next to the Jenkins store.

Step 7: Add New Credentials

On the Global Credentials page, look at the left-hand menu and click on Add Credentials.

jenkins-cred

Step 8: Fill Credential Details

Select Username with password, set scope to Global, and enter Git username, password/PAT, ID (optional), and description.

image-_5

Step 9: Save Credentials

Click the OK or Create button at the bottom of the screen to save the details.

Step 10: Verify Credentials

You will be redirected back to the Global Credentials page. You will now see your newly added Git credentials listed in the table.

image-_5