title: Jenkins groovy classpath issue - unable to resolve class
body: <p>I have an 'Execute Groovy script' build step in Jenkins.  This step consists of two files - a client file called createWorkspaces.groovy and a bean file called WorkspaceBean.groovy.  Both live in the same location in the job workspace.</p>
  
  <p>Previously running Jenkins 1.554 this ran without issues, but after upgrading to 1.594 I am getting the following error:</p>
  
  <pre><code>/jenkins/workspace/testjob/scripts/groovy/createWorkspaces.groovy: 75: unable to resolve class WorkspaceBean 
   @ line 75, column 21.
         def workspace = new WorkspaceBean()
                         ^
  
  1 error
  </code></pre>
  
  <p>I have approved the scripts in the new script approval function and I have also added the location of the files to the class path parameter in the job step as well as the location of the jenkins-core.jar file. </p>
  
  <p>Any ideas why this has stopped working?</p>