Create Credentials
Create credentials either to the Global Credential Store or to a specific folder, depending on your requirements.
Creating Credentials in the Global Credential Store
To store credentials in the Global Credential Store:
-
Navigate to Jenkins Dashboard > Manage Jenkins > Credentials > Global.
-
Go to Add Credentials and select the SecretServer User Credentials option from the Kind dropdown.
-
Enter the required username and password.
-
Select Create to save the global credentials.
Creating Folder-Specific Credentials
To configure credentials with folder-level permissions in Jenkins:
-
Install the Role-Based Strategy Plugin:
-
Navigate to Manage Jenkins > Plugins > Available plugins.
-
Search for Role-Based Strategy and install the displayed plugin.
-
-
Enable Role-Based Strategy:
-
Go to Manage Jenkins > Security.
-
In the Authorization field, select the Role-Based Strategy option from the dropdown list.
-
Select Save.
-
-
Set Up Folder-Level Roles and Permissions:
-
Navigate to Manage Jenkins > Manage and Assign Roles > Manage Roles.
-
Under the Global roles section, select Add to create a new role and assign it to the Overall > Read permission.
-
Under the Item roles section, assign the role the required permissions (e.g., Read, Build, Configure) and specify folder patterns in the Pattern field to apply them to specific folders.
-
Select Save.
-
-
Assign Roles to Users or Groups:
-
Navigate to Manage Jenkins > Manage and Assign Roles > Assign Roles.
-
Assign the roles to users or groups as needed.
-
Select Save to save the roles assigned to users or groups.
-
By using the Role-Based Strategy plugin, you can effectively manage folder-level access and permissions for credentials, ensuring secure and organized credential management.