[JIRA] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick commented on  JENKINS-35444 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 
 
I assume this was a prototype on the way to a working function, since latency seems to be left empty, and matcher could simply be inlined. 
Probably the issue is just that @NonCPS is not inherited lexically. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35444 
 
 
 
  java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jesse Glick 
 
 
 
 
 
 
 
 
 
 I get  {{  java.io.NotSerializableException: java.util.regex.Matcher }}  on:{code :groovy }@NonCPSdef extractLatency(linesArr) {  latency = [:]  println "extractLatency"  for (int j = 0; j < linesArr.size(); j++) {line = linesArr[j]println("looping over line: $line")// Matches lines like: Connect:01   0.1  1   1abPattern = /(\w+)\:\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)/def matcher = { (line =~ abPattern) }if (matcher().size > 1) {  println("matched")}matcher = nullabPattern = null  }  return latency}{code}If I throw a @NonCPS on the inner `def matcher` it fixes it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35444 
 
 
 
  java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jesse Glick 
 
 
 
 
 
 
 
 
 
 I get {{java.io.NotSerializableException: java.util.regex.Matcher}} on:{code}@NonCPSdef extractLatency(linesArr) {  latency = [:]  println "extractLatency"  for (int j = 0; j < linesArr.size(); j++) {line = linesArr[j]println("looping over line: $line")// Matches lines like: Connect:01   0.1  1   1abPattern = /(\w+)\:\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)/def matcher = { (line =~ abPattern) }if (matcher().size > 1) {  println("matched")}matcher = nullabPattern = null  }  return latency}{code}If I throw a  {{  @NonCPS }}  on the inner  `  {{ def matcher ` }}  it fixes it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-07 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Andrew Bayer assigned an issue to Andrew Bayer 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35444 
 
 
 
  java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 

Change By:
 
 Andrew Bayer 
 
 
 

Assignee:
 
 Antonio Muñiz Andrew Bayer 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-07 Thread trevorhart...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Trevor Hartman updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35444 
 
 
 
  java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 

Change By:
 
 Trevor Hartman 
 
 
 
 
 
 
 
 
 
 I get java.io.NotSerializableException: java.util.regex.Matcher on:{code: groovy java }@NonCPSdef extractLatency(linesArr) {  latency = [:]  println "extractLatency"  for (int j = 0; j < linesArr.size(); j++) {line = linesArr[j]println("looping over line: $line")// Matches lines like: Connect:01   0.1  1   1abPattern = /(\w+)\:\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)/def matcher = { (line =~ abPattern) }if (matcher().size > 1) {  println("matched")}matcher = nullabPattern = null  }  return latency}{code}If I throw a @NonCPS on the inner `def matcher` it fixes it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-35444) java.io.NotSerializableException issues even with @NonCPS

2016-06-07 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Andrew Bayer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35444 
 
 
 
  java.io.NotSerializableException issues even with @NonCPS  
 
 
 
 
 
 
 
 
 

Change By:
 
 Andrew Bayer 
 
 
 

Component/s:
 
 workflow-plugin 
 
 
 

Component/s:
 
 pipeline-milestone-step-plugin 
 
 
 
 
 
 
 
 
 
 I get java.io.NotSerializableException: java.util.regex.Matcher on:{code: java groovy }@NonCPSdef extractLatency(linesArr) {  latency = [:]  println "extractLatency"  for (int j = 0; j < linesArr.size(); j++) {line = linesArr[j]println("looping over line: $line")// Matches lines like: Connect:01   0.1  1   1abPattern = /(\w+)\:\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)/def matcher = { (line =~ abPattern) }if (matcher().size > 1) {  println("matched")}matcher = nullabPattern = null  }  return latency}{code}If I throw a @NonCPS on the inner `def matcher` it fixes it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed