I'm trying to use username/password credentials with git in a pipeline like this:
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.