[JIRA] (JENKINS-50033) Method code too large using declarative pipelines

10 views
Skip to first unread message

ruud.prijs@gmail.com (JIRA)

unread,
Mar 9, 2018, 2:59:02 AM3/9/18
to jenkinsc...@googlegroups.com
Ruud P created an issue
 
Jenkins / Bug JENKINS-50033
Method code too large using declarative pipelines
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: _unsorted
Created: 2018-03-09 07:58
Labels: pipeline
Priority: Major Major
Reporter: Ruud P

 
i got the error below when i use a lot of parallel stages , this error disappear when i just fill in a few parallel stages but of course that will not work for us. has anyone a work a round for this? we use declarative pipelines, how can i make the method shorter as i cant use dynamic stages with declarative pipelines

stages {
stage('Test') {
parallel {
    stage('1') {
      when {expression bla1}}
        steps {node(label: 'bla') {test('bla1', '')}}}

    stage('2') {
      when {expression bla2}}
        steps {node(label: 'bla') {test('bla2', '')}}}

    stage('3') {
      when {expression bla1}}
        steps {node(label: 'bla') {test('bla3', '')}}}

    stage(bla4') {
      when {expression bla3}}
        steps {node(label: 'bla') {test('bla4', '')}}}

     ..... more as 200

Notified JIRA that a build has completed.
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!

java.lang.RuntimeException: Method code too large!
at groovyjarjarasm.asm.MethodWriter.a(Unknown Source)
at groovyjarjarasm.asm.ClassWriter.toByteArray(Unknown Source)
at org.codehaus.groovy.control.CompilationUnit$17.call(CompilationUnit.java:827)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
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:127)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:557)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:518)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:290)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)

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:127)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:557)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:518)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:290)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 9, 2018, 3:23:02 AM3/9/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
Change By: Oleg Nenashev
Assignee: Oleg Nenashev

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 9, 2018, 3:23:03 AM3/9/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: pipeline
Component/s: _unsorted

ruud.prijs@gmail.com (JIRA)

unread,
Mar 9, 2018, 7:17:02 AM3/9/18
to jenkinsc...@googlegroups.com
Ruud P updated an issue
Change By: Ruud P
Priority: Major Critical

andrew.bayer@gmail.com (JIRA)

unread,
Mar 9, 2018, 1:53:02 PM3/9/18
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

amaimon@redhat.com (JIRA)

unread,
Dec 17, 2018, 10:05:02 AM12/17/18
to jenkinsc...@googlegroups.com
Amnon Maimon commented on Bug JENKINS-50033
 
Re: Method code too large using declarative pipelines

Ruud P - Is it really resolved? On which version?

Thanks

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

amaimon@redhat.com (JIRA)

unread,
Dec 17, 2018, 10:10:02 AM12/17/18
to jenkinsc...@googlegroups.com
Amnon Maimon edited a comment on Bug JENKINS-50033
[~ruudp] , [~abayer]  - Is it really resolved? On which version?

Thanks

ruud.prijs@gmail.com (JIRA)

unread,
Dec 17, 2018, 10:16:02 AM12/17/18
to jenkinsc...@googlegroups.com
Ruud P commented on Bug JENKINS-50033

my bug was a duplicate bug, but it is not solved and so far as i know it will also not happen, I change my code and using script blocks.

see

https://issues.jenkins-ci.org/browse/JENKINS-37984

 

amaimon@redhat.com (JIRA)

unread,
Dec 17, 2018, 11:02:03 AM12/17/18
to jenkinsc...@googlegroups.com

Ruud P - Thank you. I just didn't understand the resolved part of this issue

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:34:03 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 
Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages