jenkinsci / jenkinsci/credentials-plugin

[JENKINS-56537] Gitlab ID could not be found but is set and works

Open
#826 1 comment 0 reactions 0 assignees View on GitHub
component:credentials-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

I've updated my Jenkins installation to 2.150 and also plugins. I've set Gitlab token in Jenkins configuration and connection works without problem when I click on "Test connection" button.

When I launch a pipeline Job, repository is correctly pulled but I've the following warning in console output:

Warning: CredentialId "RENO-Gitlab" could not be found.

Here is my pipeline code:

 checkout([

$class: 'GitSCM',
branches: [[name: "origin/dev"]],
userRemoteConfigs: [[credentialsId: 'RENO-Gitlab', url: 'git@​mygitlab.group/project.git']]
])

So the Job starts well and works but this warning is displayed.

---
Originally reported by algorys, imported from: Gitlab ID could not be found but is set and works


  • status: Open
  • priority: Minor
  • component(s): credentials-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 2025-12-08

Raw content of original issue

I've updated my Jenkins installation to 2.150 and also plugins. I've set Gitlab token in Jenkins configuration and connection works without problem when I click on "Test connection" button.

When I launch a pipeline Job, repository is correctly pulled but I've the following warning in console output:


Warning: CredentialId "RENO-Gitlab" could not be found.


Here is my pipeline code:


 checkout([

$class: 'GitSCM',
branches: [[name: "origin/dev"]],
userRemoteConfigs: [[credentialsId: 'RENO-Gitlab', url: 'git@mygitlab.group/project.git']]
])

So the Job starts well and works but this warning is displayed.

environment

```
Jenkins ver. 2.150.3

Credentials Plugin 2.1.18
```

1 attachment

- [Screenshot from 2019-03-13 10-42-15.png](https://issues.jenkins.io/secure/attachment/46381/Screenshot%20from%202019-03-13%2010-42-15.png)
> ![Screenshot from 2019-03-13 10-42-15.png](https://issues.jenkins.io/secure/attachment/46381/Screenshot%20from%202019-03-13%2010-42-15.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.