I have the same error. I copy the bcprov-jdk15on-1.47.jar and bcpkix-jdk15on-1.47.jar from /var/lib/jenkins/plugins/ssh-agent/WEB-INF/lib to the /opt/jdk1.7.0_79/jre/lib/ext, but it still have the same error: "Caused by: java.lang.VerifyError: (class: org/bouncycastle/openssl/PEMReader$EncryptedPrivateKeyParser, method: parseObject signature: (Lorg/bouncycastle/util/io/pem/PemObject;)Ljava/lang/Object Incompatible argument to function" Jenkins ver. 2.19.1 which is installed on a CentOS 6.6 server with bouncycastle API Plugin: 2.16.0. The slave node is a CentOS 7 server. I installed the Tomcat-Library-native on both Slave node and Jenkins. Jenkins can connect to the Slave node successfully, but it fails to use the Build job using "Execute shell script on remote host using ssh". Therefore, I cannot use Jenkins to automate the tasks in the Slave node. I appreciate your advice. |