Credentials helper does not work for BasicSSHUserPrivateKey

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      What I did:

      [...]
      environment {
        CREDENTIALS = credentials("CREDENTIAL_ID")
      }
      [...]
      steps {
        sh "echo $CREDENTIALS"
      }

      What I expected:

      The value of the private key echoed in the Jenkins log. Or at least *** if the plugin hides it.

      What I got:

      [Pipeline] End of Pipeline
      org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException: No suitable binding handler could be found for type com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey. Supported types are StandardUsernamePasswordCredentials,FileCredentials,StringCredentials. 

            Assignee:
            Allan BURDAJEWICZ
            Reporter:
            Costin Caraivan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: