Skip to content

Commit da20165

Browse files
authored
Update README.md (#1829)
Corrected instruction in section "Jenkins-to-GitLab authentication", based on https://gitlab-docs-d6a9bb.gitlab.io/ee/user/permissions.html?utm_source=chatgpt.com#repository
1 parent b389252 commit da20165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ This plugin can be configured to send build status messages to GitLab, which sho
151151
2. Give this user 'Maintainer' permissions on each repo you want Jenkins to send build status to
152152
3. Log in or 'Impersonate' that user in GitLab, click the user's icon/avatar and choose Settings
153153
4. Click on 'Access Tokens'
154-
5. Create a token named e.g. 'jenkins' with 'api' scope; expiration is optional
154+
5. Create a token named e.g. 'jenkins', with scope set to 'api' and role set to 'Developer' (for protected branches, a higher role might be needed. [See Roles and permissions](https://gitlab-docs-d6a9bb.gitlab.io/ee/user/permissions.html?utm_source=chatgpt.com#repository) on GitLab). Setting expiration is optional.
155155
6. Copy the token immediately, it cannot be accessed after you leave this page
156156
7. On the Global Configuration page in Jenkins, in the GitLab configuration section, supply the GitLab host URL, e.g. `https://your.gitlab.server`
157157
8. Click the 'Add' button to add a credential, choose 'GitLab API token' as the kind of credential, and paste your GitLab user's API key into the 'API token' field

0 commit comments

Comments
 (0)