org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Expected to find someKey "someValue" @ line 3, column 12. docker { ^ WorkflowScript: 3: Missing required parameter for agent type "docker": image @ line 3, column 5. docker { ^ 2 errors

Google Groups | Bartłomiej Kruczyk | 2 weeks ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Problem with docker agent (declarative syntax)

    Google Groups | 2 weeks ago | Bartłomiej Kruczyk
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Expected to find someKey "someValue" @ line 3, column 12. docker { ^ WorkflowScript: 3: Missing required parameter for agent type "docker": image @ line 3, column 5. docker { ^ 2 errors
  2. 0

    Pipeline {{milestone}} step has two optional parameters: ordinal number label {code:java} stage ("Build") { milestone() } {code} works fine in Pipeline script but will fail without an ordinal value in Declarative Pipeline. Started by user Admin org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 5: Missing required parameter: 'ordinal' @ line 5, column 13. milestone() ^ WorkflowScript: 10: Missing required parameter: 'ordinal' @ line 10, column 13. milestone (label: 'Test') ^ WorkflowScript: 15: Missing required parameter: 'ordinal' @ line 15, column 13. milestone (label: 'Deploy') ^ 3 errors at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) at groovy.lang.GroovyShell.parse(GroovyShell.java:700) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:411) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:374) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:220) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 5 months ago | Patrick Wolf
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 5: Missing required parameter: 'ordinal' @ line 5, column 13. milestone() ^ WorkflowScript: 10: Missing required parameter: 'ordinal' @ line 10, column 13. milestone (label: 'Test') ^ WorkflowScript: 15: Missing required parameter: 'ordinal' @ line 15, column 13. milestone (label: 'Deploy') ^ 3 errors
  3. 0

    [JIRA] (JENKINS-37932) Error if no "agent" specified

    Google Groups | 6 months ago | pw...@cloudbees.com (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1.    pipeline{    ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-41236) SauceConnect step fails in Declarative pipeline: Missing required parameter: "sauceConnectPath"

    Google Groups | 1 month ago | bitwi...@gmail.com (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 16: Missing required parameter: @ line 16, column 25. sauceconnect(options: '', useGeneratedTunnelIdentifier: , verboseLogging: ) { ^ 1 error
  6. 0

    If you create a pipeline model with no {{agent}} specified you get an error message: {code}org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1. pipeline{ ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) at groovy.lang.GroovyShell.parse(GroovyShell.java:700) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:410) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:373) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:213) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code} Rather than throwing an error should we default to no label node: {{agent label:""}}

    Jenkins JIRA | 6 months ago | Patrick Wolf
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1. pipeline{ ^ 1 error

  1. serious2monkeys 8 times, last 3 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.codehaus.groovy.control.MultipleCompilationErrorsException

    startup failed: WorkflowScript: 3: Expected to find someKey "someValue" @ line 3, column 12. docker { ^ WorkflowScript: 3: Missing required parameter for agent type "docker": image @ line 3, column 5. docker { ^ 2 errors

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
  2. Groovy
    GroovyShell.parse
    1. org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
    2. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073)
    3. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
    4. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
    5. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
    6. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
    7. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
    8. groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
    9. groovy.lang.GroovyShell.parse(GroovyShell.java:700)
    9 frames
  3. org.jenkinsci.plugins
    WorkflowRun.run
    1. org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
    2. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:429)
    3. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:392)
    4. org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:221)
    4 frames
  4. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:98)
    2. hudson.model.Executor.run(Executor.java:404)
    2 frames