[JIRA] (JENKINS-55616) hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage()

1 view
Skip to first unread message

papanito@wyssmann.com (JIRA)

unread,
Jan 16, 2019, 6:14:02 AM1/16/19
to jenkinsc...@googlegroups.com
Adrian Wyssmann created an issue
 
Jenkins / Bug JENKINS-55616
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage()
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-01-16 11:13
Labels: jenkins2
Priority: Minor Minor
Reporter: Adrian Wyssmann

We have a declarative pipeline (groovy file) which is used by several projects to perform the deployment. As of uprading to Jenkins LTS 2.150.1 some of the jobs are failing, where others don't. Interestingly the pipeline itself runs on master.

Here a simplified pipeline:

 

#!groovy
import groovy.transform.Field
@Field PipelineUtil 
//PipelineUtil=library(identifier: 'pipeline-helper@master').ch.swisscard.jenkins.pipeline.util.PipelineUtil
PipelineUtil=library(identifier: 'pipeline-helper@master', retriever: modernSCM(
  [$class: 'GitSCMSource',
       remote: 'https://scm.sc.intra/scm/octopus/pipeline-helper.git',
       credentialsId: 'bitbucket.service.user'
  ])).ch.swisscard.jenkins.pipeline.util.PipelineUtillibrary identifier: 'octopus-pipeline-core@master', retriever: modernSCM(
  [$class: 'GitSCMSource',
       remote: 'https://scm.sc.intra/scm/octopus/octopus-pipeline-core.git',
       credentialsId: 'bitbucket.service.user'
  ])import hudson.AbortException
import hudson.model.ChoiceParameterDefinition
import org.apache.commons.lang3.exception.ExceptionUtils
import org.jenkinsci.plugins.workflow.support.steps.build.RunWrapperpipeline {
    agent {
        label "master"
    }
    options {
        /*
        - daysToKeepStr: history is only kept up to this days.
        - numToKeepStr: only this number of build logs are kept.
        - artifactDaysToKeepStr: artifacts are only kept up to this days.
        - artifactNumToKeepStr: only this number of builds have their artifacts kept.
        */
        buildDiscarder(logRotator(daysToKeepStr: '365'))
        disableConcurrentBuilds()
        timestamps()
    }
    parameters {
        booleanParam(defaultValue: false, description: 'Runs the pipeline in dry run (aka dummy) w/o actually deploying or automatic workorder creation', name: 'dryRun')
    }    stages {
        stage('Deployment') {
            steps {
                script {
                    ....
                    this.deploy(currentStage, currentNode, currentJob, solution, tagPrefix, selectedTag, currentTag, recipient, sender, prdOperators, gitUrl, true)
                    if (currentBuild.result.equals('UNSTABLE')) {
                        return
                    }
                }
            }
        }
        stage('Cleanup') {
            steps{
                script {
                    dbInsertBuildEnd(currentBuild, "SUCCESS")
                    PipelineUtil.setBuildDescription(currentBuild, 'Deployment Ended')
                }
            }
        }
    }
}

The pipeline `deploy` is always successful, but - if we encounter the error - we get the following log output but never reach the stage "Cleanup"

 

 

[Pipeline] // stage
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage() is applicable for argument types: (org.jenkinsci.plugins.pipeline.modeldefinition.model.Root, org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent, org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage, null) values: [org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent(null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stages([org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Deployment, null, null, null, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@379705ac), null, null, null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Cleanup, null, null, null, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@2f9438c9), null, null, null, false, null, null)]), null, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.Options([], [:], [:]), null, org.jenkinsci.plugins.pipeline.modeldefinition.model.Parameters([hudson.model.BooleanParameterDefinition@5e540782]), null, b74bfec5-972b-4b40-b872-4cd559b3d11d), ...]
Possible solutions: evaluateStage(org.jenkinsci.plugins.pipeline.modeldefinition.model.Root, org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent, org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage, java.lang.Throwable, org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage, org.jenkinsci.plugins.pipeline.modeldefinition.model.SkippedStageReason)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:19)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:76)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:74)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:455)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:454)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:73)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.recursiveWrappers(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:530)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.recursiveWrappers(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:529)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.recursiveWrappers(jar:file:/D:/data/jenkins_home/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:545)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
	at sun.reflect.GeneratedMethodAccessor809.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39)
	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
	at com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28)
	at com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55)
	at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

 

 

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

papanito@wyssmann.com (JIRA)

unread,
Jan 16, 2019, 6:17:02 AM1/16/19
to jenkinsc...@googlegroups.com
Adrian Wyssmann updated an issue
Change By: Adrian Wyssmann
We have a declarative pipeline (groovy file) which is used by several projects to perform the deployment. As of uprading to Jenkins LTS 2.150.1 some of the jobs are failing, where others don't. Interestingly the pipeline itself runs on master.


Here a simplified pipeline:

 
{code:java}
{code}

The pipeline `deploy` is always successful, but - if we encounter the error - we get the following log output but never reach the stage "Cleanup"

 

 
{code:java}
{code}
 

 

andrew.bayer@gmail.com (JIRA)

unread,
Jan 17, 2019, 12:05:02 PM1/17/19
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Jan 17, 2019, 12:05:02 PM1/17/19
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Jan 17, 2019, 12:13:01 PM1/17/19
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Bug JENKINS-55616
 
Re: hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage()

I'm guessing, based on the error message and the line numbers in the stacktrace, that you also upgraded pipeline-model-definition (which is named "Pipeline: Declarative" on the Manage Plugins page) from 1.2.7 or earlier to 1.3.4.1 (since that's the latest release) - I'd expect to see errors like this on upgrades from 1.2.x to 1.3.x for running Pipelines, but not for any Pipeline runs you kick off after upgrading and restarting. Does that fit with what you're seeing?

papanito@wyssmann.com (JIRA)

unread,
Jan 18, 2019, 4:53:04 AM1/18/19
to jenkinsc...@googlegroups.com

Apparently we had 1.2.7

Manifest-Version: 1.0
 Archiver-Version: Plexus Archiver
 Created-By: Apache Maven
 Built-By: abayer
 Build-Jdk: 1.8.0_144
 Extension-Name: pipeline-model-definition
 Specification-Title: An opinionated, declarative Pipeline
 Implementation-Title: pipeline-model-definition
 Implementation-Version: 1.2.7
 Group-Id: org.jenkinsci.plugins
 Short-Name: pipeline-model-definition
 Long-Name: Pipeline: Declarative
 Url: https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Defini
 tion+Plugin
 Compatible-Since-Version: 1.2-beta-4
 Plugin-Version: 1.2.7
 Hudson-Version: 2.7.3
 Jenkins-Version: 2.7.3
 Plugin-Dependencies: workflow-api:2.22,workflow-basic-steps:2.3,workfl
 ow-cps-global-lib:2.7,workflow-cps:2.41,workflow-durable-task-step:2.
 9,workflow-multibranch:2.9.2,workflow-scm-step:2.4,workflow-support:2
 .14,credentials-binding:1.13,credentials:2.1.13,docker-workflow:1.9,g
 it-client:2.5.0,mailer:1.18,pipeline-input-step:2.8,pipeline-stage-st
 ep:2.2,scm-api:2.2.2,pipeline-model-api:1.2.7,pipeline-model-declarat
 ive-agent:1.1.1,pipeline-model-extensions:1.2.7,pipeline-stage-tags-m
 etadata:1.2.7
 Plugin-Developers: Andrew Bayer:abayer:

ekassis@murex.com (JIRA)

unread,
Jun 7, 2019, 3:02:02 AM6/7/19
to jenkinsc...@googlegroups.com

ekassis@murex.com (JIRA)

unread,
Jun 7, 2019, 3:05:02 AM6/7/19
to jenkinsc...@googlegroups.com
Elie Kassis commented on Bug JENKINS-55616
 
Re: hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage()

we are facing an issue after upgrading jenkins and several plugins.
All executePostBuild are failing with below error.

Can you please assist ?

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild() is applicable for argument types: (org.jenkinsci.plugins.pipeline.modeldefinition.model.Root) values: [org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent(org.jenkinsci.plugins.workflow.cps.CpsClosure2@4e4c0304), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stages([org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Prepare Debug Job, null, null, null, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@193f4d75), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Push Debug, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@889e600, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@142cbef4), null, [], null, false, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageOptions(), null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Retry Debug, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@1fbed651, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@15f20b8e), null, [], null, false, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageOptions(), null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Profile, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@8b9d24e, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@6689d642), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Parsing, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@40674bbf, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@11bed30b), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Archiving, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@57800d78, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@5ca25f43), null, [], null, false, null, null)]), org.jenkinsci.plugins.pipeline.modeldefinition.model.MappedClosure([failure:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@577ff6e2), aborted:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@53ff07f0), unstable:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@46900972), success:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@1119ff7c)]), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.Options([], [:], [:]), null, null, null, 5afee698-5ebb-4f5f-8f0a-37c5ba714613)]
Possible solutions: executePostBuild(org.jenkinsci.plugins.pipeline.modeldefinition.model.Root, java.lang.Throwable)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)

ekassis@murex.com (JIRA)

unread,
Jun 7, 2019, 3:15:03 AM6/7/19
to jenkinsc...@googlegroups.com
Elie Kassis edited a comment on Bug JENKINS-55616
[~abayer], we are facing an issue after upgrading jenkins and several plugins.

All executePostBuild are failing with below error.

+Potential guilty plugin+  pipeline-model-definition -> Guilty issue: JENKINS-56402

*Pipeline: Model API* ==> current version 1.3.8
                                ==> old version 1.3.4.1

Can you please assist ?


{code:java}

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild() is applicable for argument types: (org.jenkinsci.plugins.pipeline.modeldefinition.model.Root) values: [org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(org.jenkinsci.plugins.pipeline.modeldefinition.model.Agent(org.jenkinsci.plugins.workflow.cps.CpsClosure2@4e4c0304), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stages([org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Prepare Debug Job, null, null, null, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@193f4d75), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Push Debug, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@889e600, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@142cbef4), null, [], null, false, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageOptions(), null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Retry Debug, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@1fbed651, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@15f20b8e), null, [], null, false, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageOptions(), null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Profile, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@8b9d24e, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@6689d642), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Parsing, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@40674bbf, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@11bed30b), null, [], null, false, null, null), org.jenkinsci.plugins.pipeline.modeldefinition.model.Stage(Archiving, null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StageConditionals(org.jenkinsci.plugins.workflow.cps.CpsClosure2@57800d78, false, false), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@5ca25f43), null, [], null, false, null, null)]), org.jenkinsci.plugins.pipeline.modeldefinition.model.MappedClosure([failure:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@577ff6e2), aborted:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@53ff07f0), unstable:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@46900972), success:org.jenkinsci.plugins.pipeline.modeldefinition.model.StepsBlock(org.jenkinsci.plugins.workflow.cps.CpsClosure2@1119ff7c)]), null, null, org.jenkinsci.plugins.pipeline.modeldefinition.model.Options([], [:], [:]), null, null, null, 5afee698-5ebb-4f5f-8f0a-37c5ba714613)]
Possible solutions: executePostBuild(org.jenkinsci.plugins.pipeline.modeldefinition.model.Root, java.lang.Throwable)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
{code}

oliver.grad@gmx.de (JIRA)

unread,
Aug 23, 2019, 9:03:04 AM8/23/19
to jenkinsc...@googlegroups.com

We've got a similar issue on our Jenkins installation after upgrading.

Jenkins from 2.164.3 to 2.176.2. Several plugins have been updated.

The config history of the crashing pipeline shows the following affected plugin upgrades:

workflow-job: 2.25 -> 2.34
pipeline-model-definition: 1.3.2 -> 1.3.9
workflow-cps: 2.70 -> 2.73

The pipeline-groovy-plugin is on version 2.73.

The error message is:

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.lang.String.collectEntries() is applicable for argument types: (org.jenkinsci.plugins.workflow.cps.CpsClosure2) values: [org.jenkinsci.plugins.workflow.cps.CpsClosure2@54fa5174]
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:153)
	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:158)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:162)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
	at WorkflowScript.run(WorkflowScript:89)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:84)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
	at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
..

The pipeline code Jenkins complains about is:

...
    stage('Parallel Tests') {
            parallel {
                stage('CSS Validation') {
                    steps {
                        script {
                            URLS = ''
                            switch ("${STAGE}") {
                                case "CMS TU INT":
                                    URLS = ['<some URL>']
                                    break
                                case "CMS TU PROD":
                                    URLS = ['<some other URL>']
                                    break
                                case "CMS PROD ONLY TEST":
                                    URLS = ['<again some URL>']
                                    break
                            }
                            commands = URLS.collectEntries {
                                [(it): {
                                    sh "curl ${it} > ${safeFileName(it)}"
                                    sh "${YARN} css-validation -f ${safeFileName(it)}"
                                }]
                            }
                            parallel(commands)
                        }
                    }
                    post {
                        always {
                            myArchiveArtifacts('cssvalidator/reports/', "validator/${env.BUILD_NUMBER}")
                        }
                    }
                }
... 

 

Any help appreciated!

Oliver

Reply all
Reply to author
Forward
0 new messages