[JIRA] (JENKINS-37889) Regression: Invoking static methods on global variables

2016-09-11 Thread vehov...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Vehovsky closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Fixed in 2.3  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-37889  
 
 
  Regression: Invoking static methods on global variables   
 

  
 
 
 
 

 
Change By: 
 Martin Vehovsky  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 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-37889) Regression: Invoking static methods on global variables

2016-09-01 Thread vehov...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Vehovsky created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37889  
 
 
  Regression: Invoking static methods on global variables   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Jesse Glick  
 
 
Components: 
 pipeline  
 
 
Created: 
 2016/Sep/01 11:59 AM  
 
 
Priority: 
  Blocker  
 
 
Reporter: 
 Martin Vehovsky  
 

  
 
 
 
 

 
 There seems to be issue with invoking static methods on global variables after updating to Pipeline Shared Groovy Libraries Plugin 2.1. (I reverted back to 2.0 already) Following is supposed to work: workflowLibs/vars/TEST.groovy 

 

def testMethod(String options = '') {
...
}
 

 

 

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: static TEST.testMethod() is applicable for argument types: (java.lang.String) values: [47380]
Possible solutions: testMethod(java.lang.String), testMethod()
	at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1367)
	at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1353)
	at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
	at WorkflowScript.run(WorkflowScript:6)