Recently updated our Jenkins controller, now our jobs all fail with a Java error

Jenkins setup:
Version 2.501

Deployment based on this tutorial:

We just updated to 2.5 and then to 2.501 hoping it would help resolve our issue with 2.5. I am not able to recall exactly what version we were on before but it was around 2.47 something.

We saw a notice that there was a security issue and when we updated it would no longer spin up the cluster for the controller because agentProtocols was in our configuration. Eventually I was able to create a new image with agentProtocols removed and everything seemed to be working, but now all of our spot agents running jenkins/inbound-agent based images crash when running jobs with the message:

java.lang.NoSuchFieldError: Class org.jenkinsci.plugins.workflow.cps.global.WorkflowLibRepository does not have member field ‘java.io.File workspace’

I am unable to find any similar situations online.

Seems you’re using the deprecated plugin Pipeline: Deprecated Groovy Libraries
That is the only plugin where I could find the class WorkflowLibRepository.
It makes use of the Git server plugin which had a change recently that would explain the error.

1 Like

That got me past that issue, thanks for the quick response!