-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
0.2.0
I'm trying to use username/password credentials with git in a pipeline like this:
pipeline { agent any stages { stage('Example') { steps { git credentialsId: 'git-creds', url:'https://github.com/jenkinsci/aws-secrets-manager-credentials-provider-plugin.git' } } } }
The Git plugin will first test if the credentials are a ssh key, and then try to extract the key. Only if the credentials are not a ssh key will it test if it is a username/password.
The issue is that 'AwsCredentials' are implementing both 'StandardUsernamePasswordCredentials' and 'SSHUserPrivateKey'.
The solution would be (I think) to have different subclasses for each.
- links to