ERROR: Unable to properly load a script file

Hi Team,

 I'm encountering an issue with Jenkins, when I click the instantly build the project,  it doesn't work, the error info below:

ERROR: Unable to properly load a script file.


but I use the scanner branch method, it will build successfully, I use the Jenkins version is 2.361. please help me, What is the cause for this error…? How to fix this error. it disturbs me for a few days. I still can’t solve it.

I found the Jenkins log has some errors, but I am not sure if they relative this issue

 WARNING        o.j.p.w.s.a.WorkspaceRunAction#getActions test/backend/customer-filehandling-service/test #6 did not yet start
        at org.jenkinsci.plugins.workflow.job.WorkflowRun$Owner.get(
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.base/java.lang.reflect.Method.invoke(
        at org.apache.commons.jexl.util.PropertyExecutor.execute(
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(
        at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(
        at org.apache.commons.jexl.parser.ASTIdentifier.execute(
        at org.apache.commons.jexl.parser.ASTReference.execute(
        at org.apache.commons.jexl.parser.ASTReference.value(
        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(
        at org.apache.commons.jexl.ExpressionImpl.evaluate(
        at hudson.ExpressionFactory2$JexlExpression.evaluate(
        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(
        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(
        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(
        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$
        at org.kohsuke.stapler.jelly.CallTagLibScript$
        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(

doing some searching for that message on github, I found Config-Driven Pipeline
I’ve not heard of this plugin or have much experience with it but looking at the code brielfy, it looks like it spits out that error when it can’t parse the file provided. It should kinda indicate why in the jenkins system logs, have you looked there at all?

thanks, I will look at all logs, your reply already gives me very useful information, thanks again.