[JIRA] (JENKINS-38945) Pipeline script doesn't find method with explicit parameter type
Title: Message Title Jesse Glick commented on JENKINS-38945 Re: Pipeline script doesn't find method with explicit parameter type At some point I will see if I can reproduce. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-38945) Pipeline script doesn't find method with explicit parameter type
Title: Message Title Daniel Sobral commented on JENKINS-38945 Re: Pipeline script doesn't find method with explicit parameter type Just checked, and the error stays the same. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-38945) Pipeline script doesn't find method with explicit parameter type
Title: Message Title Jesse Glick commented on JENKINS-38945 Re: Pipeline script doesn't find method with explicit parameter type Hmm…did you try declaring an explicit return type, rather than using def? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-38945) Pipeline script doesn't find method with explicit parameter type
Title: Message Title Daniel Sobral created an issue Jenkins / JENKINS-38945 Pipeline script doesn't find method with explicit parameter type Issue Type: Bug Assignee: Unassigned Components: script-security-plugin, workflow-cps-plugin Created: 2016/Oct/13 1:13 AM Environment: Jenkins 2.23 Pipeline 2.4 Pipeline: Groovy 2.19 Script Security 1.23 Priority: Minor Reporter: Daniel Sobral Pipeline scripts fail to find method declaring parameter type. The script below will fail to execute "doStuff", with NoSuchMethodError. This used to work, but rolling back security and groovy didn't help, and utility steps (which defines readMavenPom) wasn't available for rollback. On a simple test, "Integer n" works as a type parameter, so this might well be specific to the object returned by readMavenPom(). import org.apache.maven.model.Model stage ("initial") { node ('mesos') { git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' Model pom = readMavenPom() echo "Class of pom is ${pom.class}" doThings(pom) doStuff(pom) } } def doThings(pom) { echo "Got something" } def doStuff(Model pom) { echo "Got pom" }