Why credentials are not listed in the GIT SCM section?

Article ID:360017499672
1 minute readKnowledge base

Issue

  • When I am creating a Freestyle or Maven Job, and I select the Git SCM configuration section, the credentials dropdown is empty. If I check other SCM section like SVN, I can load the credentials correctly.

Resolution

This is a known issue affecting different Jenkins versions as well as Git Plugin versions. And it happens in environments where you have installed the Authorize Project Plugin and you configure it as shown below:

  • Manage Jenkins-> Configure Global Security-> Project default build Authorization section:

  • I have selected anonymous as the user under which I will run the build

  • I have selected to run builds as a specific user:

In order to get access to the credentials list, you should enable any of the other authorization types at the Configure Global Security level: SYSTEM or the user who triggered the build.

Once that you change the settings to the ones mentioned, you will get the credentials list back in your jobs.

References