title: how to solve "hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method:"
body: <p>I got following  error while calling another groovy file in my Jenkinsfile-</p>
  
  <blockquote>
    <p>hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method:
    java.util.LinkedHashMap.test() is applicable for argument types:
    (java.lang.String, java.lang.String) values: [${REPO_PATH},
    ${APP_NAME}]
        Possible solutions: wait(), sort(), getAt(java.lang.String), keySet(), keySet(), keySet()</p>
  </blockquote>
  
  <p>I am calling a function from another groovy file. following is mine Jenkinsfile and groovy functional file.</p>
  
  <p><strong>Jenkinsfile:</strong></p>
  
  <pre><code>Map modules = [:]
  pipeline{
      agent any
      environment{
          REPO_PATH='/home/manish/Desktop'
          APP_NAME='test'
      }
      stages{
          stage('calling function'){
              steps{
                  script{
                      modules.test = load "testfun.groovy"
                      modules.test('${REPO_PATH}','${APP_NAME}')
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>testfun.groovy:</strong></p>
  
  <pre><code>def call(def path,def app){
      stages{
          stage('build and deploy'){
              steps{
                  sh''' 
                  cd ${path}/${app}/
                  mkdir testing
                  '''
                  }
              }
          }
     }
  </code></pre>
  
  <p>Suggest me the right way.</p>