-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: aws-secrets-manager-credentials-provider-plugin
-
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