• Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Major Major
    • ssh-agent-plugin
    • None
    • PowerPC
      Jenkins 1.642
      SSH Agent 1.9

      Issue

      Running Jenkins on PowerPC (ppc64le), when trying to use SSH-Agent we are getting below error:

      [ssh-agent] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/unknown-Linux/libjffi-1.2.so, /jni/unknown-Linux/libjffi-1.2.so] 
      [ssh-agent] at com.kenai.jffi.internal.StubLoader.getStubLibraryStream(StubLoader.java:353) 
      [ssh-agent] at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:300) 
      [ssh-agent] at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:235) 
      [ssh-agent] at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:403) 
      [ssh-agent] at java.lang.Class.forName0(Native Method) 
      [ssh-agent] at java.lang.Class.forName(Class.java:348) 
      [ssh-agent] at com.kenai.jffi.Init.load(Init.java:68) 
      [ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49) 
      [ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45) 
      [ssh-agent] ... 38 more 
      FATAL: [ssh-agent] Unable to start agent 
      hudson.util.IOException2: [ssh-agent] Unable to start agent 
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:253) 
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:223) 
      at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 
      at hudson.model.Run.execute(Run.java:1738) 
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
      at hudson.model.ResourceController.execute(ResourceController.java:98) 
      at hudson.model.Executor.run(Executor.java:410) 
      Caused by: java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider. 
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>(SSHAgentBuildWrapper.java:371) 
      at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:246)
      

      Resolution

      It looks like version 2.0.3+ of jnr-iff is where ppc64le adds compatibility:

      So compatibility could be provided by upgrading the following dependencies:

          [JENKINS-37430] PowerPC (ppc64le) compatibility

          Fathi Boudra added a comment -

          similar bug on ARM and Aarch64. See also https://issues.jenkins-ci.org/browse/JENKINS-30746

          Fathi Boudra added a comment - similar bug on ARM and Aarch64. See also https://issues.jenkins-ci.org/browse/JENKINS-30746

          I made two PR to add support to ppc64le

          PR jnr-unixsocket-nodep
          PR ssh-agent-plugin

          also it is needed to compile and install https://github.com/jnr/jffi library

          Ivan Fernandez Calvo added a comment - I made two PR to add support to ppc64le PR jnr-unixsocket-nodep PR ssh-agent-plugin also it is needed to compile and install https://github.com/jnr/jffi library

          Jesse Glick added a comment -

          Jesse Glick added a comment - Close if https://github.com/jenkinsci/ssh-agent-plugin/pull/48 is merged.

            Unassigned Unassigned
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: