Hi, I think you are trying to be too clever here: pipeline{ } expects a declarative pipeline, but you are supplying a scripted one inside. The error mentions at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/data/jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:59) at WorkflowScript.runPipeline(WorkflowScript:23) <- this is the line in your script where the error happens. at WorkflowScript.run(WorkflowScript:10) Try to get it working without 'pipeline {} '
Björn Am Donnerstag, 9. August 2018 17:28:44 UTC+2 schrieb Markus "Shorty" Uckelmann: > > Hello all, > > My Jenkinsfile aborts with an error and I can't find the reason. I ran > out of ideas. Also I have no clue what the error means (neither Java nor > Groovy is my strength). The curious thing is, when I remove the last > block ("Clean") in the runPipeline function the job runs successfully. > > Please let me know if more information is needed. > > Any help would be much appreciated. > > > First line of the error is: > > hudson.remoting.ProxyException: > org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot > cast object '{clean-composer=null, clean-qucli=null}' with class > 'java.util.HashMap' to class > 'org.jenkinsci.plugins.pipeline.modeldefinition.model.Root' due to: > groovy.lang.GroovyRuntimeException: Could not find matching constructor > for: > org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(java.util.HashMap) > > > > Jenkinsfile: > > https://gist.github.com/bemeyert/3f88cc0c458d9d8c2dc5e853fdf4e7b4#file-jenkinsfile-groovy > > > Complete error: > > https://gist.github.com/bemeyert/3f88cc0c458d9d8c2dc5e853fdf4e7b4#file-jenkins-error > > > > Cheers, Shorty > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f550a37-4fa7-41af-9747-bf76407cefb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.