Getting error while giving jenkins build for creating docker image through pipeline script

0 votes
Started by user edureka

Running in Durability level: MAX_SURVIVABILITY

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

WorkflowScript: 15: Expected a stage @ line 15, column 9.

           stage('building image'){

           ^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)

at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)

at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)

at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)

at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)

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.doParse(CpsGroovyShell.java:133)

at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:126)

at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561)

at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:522)

at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:320)

at hudson.model.ResourceController.execute(ResourceController.java:97)

at hudson.model.Executor.run(Executor.java:429)

Finished: FAILURE
May 29, 2020 in DevOps & Agile by Chokkalingabarathi
• 120 points
3,520 views
Can you share your script?

2 answers to this question.

0 votes
Problem with your pipeline script.please check the script and validate it using Google.
answered May 29, 2020 by anonymous
0 votes
Can you show your full code
answered May 29, 2020 by SV

Related Questions In DevOps & Agile

0 votes
1 answer

Docker for windows error: while exposing Ports

I faced a similar issue, just follow ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
2,989 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

getting error while trying for "kubectl get nodes" on node

Hi@Surya, I think you did not configure your ...READ MORE

answered Jul 9, 2020 in DevOps & Agile by MD
• 95,460 points
2,176 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,735 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP