Introduction
Jenkins uses credentials to store secrets like passwords or tokens safely. Credential scoping controls where these secrets can be used, either everywhere (global) or only in specific folders, helping keep secrets secure and organized.
When you want a secret to be available to all jobs in Jenkins, like a global API key.
When you want to limit a secret to only jobs inside a specific folder to reduce risk.
When you have multiple teams using the same Jenkins instance and want to separate their secrets.
When you want to avoid accidental use of sensitive credentials outside their intended scope.
When you want to organize credentials by project or team using folder-level scoping.