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:

  1. Navigate to Jenkins Dashboard > Manage Jenkins > Credentials > Global.

  2. Go to Add Credentials and select the SecretServer User Credentials option from the Kind dropdown.

  3. Enter the required username and password.

  4. Select Create to save the global credentials.

Creating Folder-Specific Credentials

To configure credentials with folder-level permissions in Jenkins:

  1. Install the Role-Based Strategy Plugin:

    1. Navigate to Manage Jenkins > Plugins > Available plugins.

    2. Search for Role-Based Strategy and install the displayed plugin.

  2. Enable Role-Based Strategy:

    1. Go to Manage Jenkins > Security.

    2. In the Authorization field, select the Role-Based Strategy option from the dropdown list.

    3. Select Save.

  3. Set Up Folder-Level Roles and Permissions:

    1. Navigate to Manage Jenkins > Manage and Assign Roles > Manage Roles.

    2. Under the Global roles section, select Add to create a new role and assign it to the Overall > Read permission.

    3. 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.

    4. Select Save.

  4. Assign Roles to Users or Groups:

    1. Navigate to Manage Jenkins > Manage and Assign Roles > Assign Roles.

    2. Assign the roles to users or groups as needed.

    3. 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.