Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52850

Credentials helper does not work for BasicSSHUserPrivateKey

    XMLWordPrintable

Details

    Description

      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. 

      Attachments

        Activity

          ccaraivan Costin Caraivan created issue -
          allan_burdajewicz Allan BURDAJEWICZ made changes -
          Field Original Value New Value
          Component/s ssh-credentials-plugin [ 17424 ]
          allan_burdajewicz Allan BURDAJEWICZ made changes -
          Component/s pipeline-model-definition-plugin [ 21706 ]
          allan_burdajewicz Allan BURDAJEWICZ made changes -
          Assignee Allan BURDAJEWICZ [ allan_burdajewicz ]
          allan_burdajewicz Allan BURDAJEWICZ made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          abayer Andrew Bayer made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          allan_burdajewicz Allan BURDAJEWICZ made changes -
          Remote Link This issue links to "pipeline-model-definition-plugin #321 (Web Link)" [ 22524 ]
          bitwiseman Liam Newman made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            allan_burdajewicz Allan BURDAJEWICZ
            ccaraivan Costin Caraivan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: