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

sshagent not finding agent factories (but does not report why)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Trivial Trivial
    • ssh-agent-plugin
    • tomcat 9, jenkins 2.19.1, window 7, java 8, tcnative installed

      Following Exception is raised when i run my pipeline script:

      {{node {
      stage('a') {
      sshagent(['tomcat'])

      { sh 'ssh 10.141.86.5 ls' }

      }
      }}}

      {{[Pipeline] node
      Running on master in f:\jenkins\workspace\pipetest
      [Pipeline] {
      [Pipeline] stage
      [Pipeline]

      { (a) [Pipeline] sshagent [ssh-agent] Using credentials tomcat [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] FATAL: Could not find a suitable ssh-agent provider [ssh-agent] Diagnostic report [Pipeline] // sshagent [Pipeline] }

      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider.
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentStepExecution.initRemoteAgent(SSHAgentStepExecution.java:180)
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentStepExecution.start(SSHAgentStepExecution.java:63)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126)}}

      At least i was expecting an error from the agent with loading the native lib.

            Unassigned Unassigned
            stefandotti Stefan Dotti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: