jenkinsci / jenkinsci/github-checks-plugin

[JENKINS-71510] Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey

Open
#504 1 comment 0 reactions 0 assignees View on GitHub
component:github-checks-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
89
Forks
50
Avg merge
13h 55m
Merged PRs (30d)
7

Description

after upgrading to 545.v79a_a_68b_ca_682 we're seeing github checks fail with the following error

 

[GitHub Checks] Failed Publishing GitHub checks: java.io.IOException: Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey

 

with this full stacktrace in the logs

 

WARNING io.jenkins.plugins.checks.github.GitHubChecksPublisher publishFailed Publishing GitHub checks: ChecksDetails{name='Jenkins', detailsURL='null', status=IN_PROGRESS, conclusion=NONE, startedAt=null, completedAt=null, output=ChecksOutput


{title='In progress', summary='', text='  * Start *(running)*    * Launch Jenkins Agent *(running)*      * Setup Containers *(28 sec)*      * Pre-Deploy *(running)*', annotations=[], images=[]}

, actions=[]}

java.io.IOException: Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey

    at org.jenkinsci.plugins.github_branch_source.Connector.connect(Connector.java:393)

    at io.jenkins.plugins.checks.github.GitHubChecksPublisher.publish(GitHubChecksPublisher.java:72)

    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher.publish(BuildStatusChecksPublisher.java:64)

    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$ChecksGraphListener.lambda$onNewHead$0(BuildStatusChecksPublisher.java:244)

    at java.base/java.util.Optional.ifPresent(Optional.java:183)

    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$ChecksGraphListener.onNewHead(BuildStatusChecksPublisher.java:244)

    at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1587)

    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:509)

    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)

    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)

    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)

    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

    at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)

    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

    at java.base/java.lang.Thread.run(Thread.java:829)

 

rolling back to v536.v2e4ea_8fa_e423 resolves the issue

https://github.com/jenkinsci/github-checks-plugin/pull/341 appears to have caused this issue

---
Originally reported by guthrie, imported from: Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey


  • assignee: xiongkezhi
  • status: Open
  • priority: Minor
  • component(s): github-checks-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 3
  • imported: 20260107-220949

Raw content of original issue

after upgrading to 545.v79a_a_68b_ca_682 we're seeing github checks fail with the following error

 
[GitHub Checks] Failed Publishing GitHub checks: java.io.IOException: Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey

 

with this full stacktrace in the logs

 
WARNING io.jenkins.plugins.checks.github.GitHubChecksPublisher publishFailed Publishing GitHub checks: ChecksDetails{name='Jenkins', detailsURL='null', status=IN_PROGRESS, conclusion=NONE, startedAt=null, completedAt=null, output=ChecksOutput


{title='In progress', summary='', text='  * Start *(running)*    * Launch Jenkins Agent *(running)*      * Setup Containers *(28 sec)*      * Pre-Deploy *(running)*', annotations=[], images=[]}

, actions=[]}
java.io.IOException: Unsupported credential type: com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey
    at org.jenkinsci.plugins.github_branch_source.Connector.connect(Connector.java:393)
    at io.jenkins.plugins.checks.github.GitHubChecksPublisher.publish(GitHubChecksPublisher.java:72)
    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher.publish(BuildStatusChecksPublisher.java:64)
    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$ChecksGraphListener.lambda$onNewHead$0(BuildStatusChecksPublisher.java:244)
    at java.base/java.util.Optional.ifPresent(Optional.java:183)
    at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$ChecksGraphListener.onNewHead(BuildStatusChecksPublisher.java:244)
    at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1587)
    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:509)
    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
 

rolling back to v536.v2e4ea_8fa_e423 resolves the issue

https://github.com/jenkinsci/github-checks-plugin/pull/341 appears to have caused this issue

environment

```
Jenkins 2.401.1

github-checks-plugin 545.v79a_a_68b_ca_682
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.