Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52714

groovy.lang.missinMethodException: no signature of method : java.lang.String.notifyStatusChangeViaEmail() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values[SUCCESS]

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Critical Critical
    • workflow-cps-plugin
    • None

       

      Getting error like :

      groovy.lang.missinMethodException: no signature of method : xyz() is applicable for argument type (java.lang.String) : values [SUCCESS] 

      my method calling is like :

      pipeline {pipeline {
          *environment

      { def externalMethod = load("D:\\Programs\\Jenkins* *LocalScriptClass.groovy");      }

      *

      ....

      ....

         externalMethod.notifyStatusChangeViaEmail("${currentBuild.currentResult}")

      and method signature in local file is like :

       

      public class MyClass {public class MyClass {

                                      def notifyStatusChangeViaEmail(GString buildStatus)

                                     

      {                                              // TODO                                 }

      }

       

            Unassigned Unassigned
            akhurdhara amit khurdhara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: