[JIRA] (JENKINS-59492) False positive CPS mismatch warning when calling a method pointer

2019-12-04 Thread vfr...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuxiang Zhu commented on  JENKINS-59492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: False positive CPS mismatch warning when calling a method pointer   
 

  
 
 
 
 

 
 We came across the exact same warning when calling a method via a pointer. The method is called correctly and works fine, apparently this is a false positive warning. Pointers are assigned with https://github.com/openshift/aos-cd-jobs/pull/2053/files#diff-b89f72b7074288d1245c7ece87537d33R13-R19 and called at https://github.com/openshift/aos-cd-jobs/pull/2053/files#diff-b89f72b7074288d1245c7ece87537d33R111  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202107.1569256304000.1184.1575517260619%40Atlassian.JIRA.


[JIRA] (JENKINS-59492) False positive CPS mismatch warning when calling a method pointer

2019-09-23 Thread roman.donche...@intel.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Donchenko created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-59492  
 
 
  False positive CPS mismatch warning when calling a method pointer   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 workflow-cps-plugin  
 
 
Created: 
 2019-09-23 16:31  
 
 
Environment: 
 Jenkins: 2.176.3  Pipeline: Groovy: 2.74  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Roman Donchenko  
 

  
 
 
 
 

 
 Run this pipeline: 

 

def hello() {
 echo 'hello'
}

(this.&hello).call()
 

 The output is as follows: 

 

[Pipeline] Start of Pipeline
expected to call org.kohsuke.groovy.sandbox.impl.SandboxedMethodClosure.call but wound up catching WorkflowScript.hello; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/
[Pipeline] echo
hello
[Pipeline] End of Pipeline
Finished: SUCCESS
 

 As evidenced by the "hello" output, the hello method runs normally, so the warning is a false positive.