jenkinsci / jenkinsci/credentials-plugin
[JENKINS-56537] Gitlab ID could not be found but is set and works
- 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
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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.