[JIRA] (JENKINS-52850) Credentials helper does not work for BasicSSHUserPrivateKey

4 views
Skip to first unread message

costincaraivan@gmail.com (JIRA)

unread,
Aug 2, 2018, 4:55:02 AM8/2/18
to jenkinsc...@googlegroups.com
Costin Caraivan created an issue
 
Jenkins / Improvement JENKINS-52850
Credentials helper does not work for BasicSSHUserPrivateKey
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2018-08-02 08:54
Environment: Jenkins ver. 2.121.1
Credentials binding plugin 1.16
Priority: Minor Minor
Reporter: Costin Caraivan

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. 
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 13, 2019, 11:31:02 PM3/13/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ commented on Improvement JENKINS-52850
 
Re: Credentials helper does not work for BasicSSHUserPrivateKey

There is not support for credentials binding of SSH Credentials in the environment block of declarative pipeline. The SSHCredentials would need to implement a CredentialsBindingHandler.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 13, 2019, 11:31:02 PM3/13/19
to jenkinsc...@googlegroups.com

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 18, 2019, 2:30:02 AM3/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ edited a comment on Improvement JENKINS-52850
There is not support for credentials binding of SSH Credentials in the {{environment}} block of declarative pipeline. The SSHCredentials Pipeline Model Definition would need to implement a [CredentialsBindingHandler|https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/pipeline-model-definition-1.3.6/pipeline-model-extensions/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/model/CredentialsBindingHandler.java].

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 18, 2019, 2:30:02 AM3/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ edited a comment on Improvement JENKINS-52850
There is not support for credentials binding of SSH Credentials in the {{environment}} block of declarative pipeline. The Pipeline Model Definition would need to implement a [CredentialsBindingHandler|https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/pipeline-model-definition-1.3.6/pipeline-model-extensions/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/model/CredentialsBindingHandler.java] for SSH Credentials .

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 18, 2019, 8:48:03 PM3/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ updated an issue
Change By: Allan BURDAJEWICZ
Component/s: pipeline-model-definition-plugin

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 18, 2019, 8:55:02 PM3/18/19
to jenkinsc...@googlegroups.com

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 18, 2019, 8:55:03 PM3/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ started work on Improvement JENKINS-52850
 
Change By: Allan BURDAJEWICZ
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Mar 20, 2019, 10:02:02 AM3/20/19
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Fixed
 

Thanks, Allan BURDAJEWICZ! This is merged, and will be in the next release (1.3.7) (though there may be a 1.3.7-beta-2 first to make sure another fix doesn't cause problems)

Change By: Andrew Bayer
Status: In Progress Resolved
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:54 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages