org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script6: 24: unable to resolve class junit.framework.Test @ line 24, column 1. import junit.framework.Test ^ 1 error

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by James Nord, 1 year ago
startup failed: Script6: 24: unable to resolve class junit.framework.Test @ line 24, column 1. import junit.framework.Test ^ 1 error
via Google Groups by jh...@cloudbees.com (JIRA), 9 months ago
startup failed: WorkflowScript: 1: unable to resolve class com.cloudbees.ops.Builder @ line 1, column 1. import com.cloudbees.ops.Builder; ^ 1 error
via Jenkins JIRA by Cyrille Le Clerc, 1 year ago
startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error
via Google Groups by cleclerc@cloudbees.com (JIRA), 2 years ago
startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error
via Jenkins JIRA by Cyrille Le Clerc, 1 year ago
startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error
via GitHub by seanzhau
, 1 year ago
startup failed: WorkflowScript: 2: unable to resolve class Library , unable to find class for annotation @ line 2, column 1. @Library('github.com/fabric8io/fabric8-pipeline-library@master') ^ WorkflowScript: 28: unable to resolve class io.fabric8.Utils @ line 28, column 13. def utils = new io.fabric8.Utils() ^ 2 errors
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script6: 24: unable to resolve class junit.framework.Test @ line 24, column 1. import junit.framework.Test ^ 1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:861)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:550)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:499)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
at groovy.lang.GroovyShell.parse(GroovyShell.java:743)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:413)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.loadProgramAsync(CpsFlowExecution.java:501)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:476)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:476)
at hudson.model.RunMap.retrieve(RunMap.java:224)
at hudson.model.RunMap.retrieve(RunMap.java:56)
at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:479)
at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:461)
at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:367)
at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:318)
at jenkins.model.lazy.AbstractLazyLoadRunMap.oldestBuild(AbstractLazyLoadRunMap.java:278)
at jenkins.model.lazy.LazyBuildMixIn.getFirstBuild(LazyBuildMixIn.java:231)
at org.jenkinsci.plugins.workflow.job.WorkflowJob.getFirstBuild(WorkflowJob.java:216)
at org.jenkinsci.plugins.workflow.job.WorkflowJob.getFirstBuild(WorkflowJob.java:100)
at hudson.tasks.LogRotator.perform(LogRotator.java:137)
at hudson.model.Job.logRotate(Job.java:478)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:541)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:111)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:797)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:984)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$4.run(CpsThreadGroup.java:429)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

4 times, 1 month ago
5 times, 3 months ago
Once, 5 months ago
Once, 6 months ago
Once, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.