Why am I getting a Class Cast Error with my SSH Credentials

Issue

When trying to access a SSH credential through a script I am gettin a class cast error such as the one below:

org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 

Environment

  • CloudBees Operations Center
  • CloudBees Jenkins Enterprise
  • Linux

Resolution

Make sure that the SSH Credential referenced in the error is not stored on both the CloudBees Operations Center instance and the CloudBees Jenkins Enterprise instance

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.