Status: Open (View Workflow)
Environment:Running on Jenkins ver. 2.176.2
Credentials plugin: 2.2.1
Credentials binding plugin: 1.19
OS: Ubuntu, 18.04.2 LTS (Bionic Beaver)
Issue: fails to retrieve global credential and thus fails SCM step
When executing the pipeline or using the snippet generator tool, global credentials are not found and thus the SCM steps fail. Credentials can be created from the dropdown provided for the SCM step at the pipeline snippet generator, but are later not listed in the same dropdown, though visible in the global credentials page.
We verified that credentials can be accessed in the pipeline using the command withCredentials(id).
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[credentialsId: 'github-secret', url: 'firstname.lastname@example.org:something/reponame.git']]])
15:15:00 Warning: CredentialId "github-secret" could not be found.15:15:00 Cloning the remote Git repository