org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1.    pipeline{    ^ 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 Google Groups by pw...@cloudbees.com (JIRA), 1 year ago
startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1.    pipeline{    ^ 1 error
via Jenkins JIRA by Patrick Wolf, 1 year ago
startup failed: WorkflowScript: 3: Missing required section 'agent' @ line 3, column 1. pipeline{ ^ 1 error
via Google Groups by Bartłomiej Kruczyk, 9 months ago
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
via Google Groups by bitwi...@gmail.com (JIRA), 10 months ago
startup failed: WorkflowScript: 16: Missing required parameter: @ line 16, column 25. sauceconnect(options: '', useGeneratedTunnelIdentifier: , verboseLogging: ) { ^ 1 error
via Jenkins JIRA by Patrick Wolf, 1 year ago
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
via Stack Overflow by BadmintonCat
, 7 months ago
, timestamps, waitUntil, withContext, withCredentials, withEnv, ws] @ line 30, column 3. pipelineTriggers([cron('H 0 * * *')]) ^ 1 error
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 week ago
8 times, 11 months ago
5 times, 1 month ago
3 times, 1 month ago
Once, 3 months ago
29 more bugmates

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