[JIRA] (JENKINS-39699) regression: arrays of objects no longer serializable

2016-12-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Not sure offhand how it could have worked in 2.22. You must declare C to be serializable.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-39699  
 
 
  regression: arrays of objects no longer serializable   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 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 

[JIRA] (JENKINS-39699) regression: arrays of objects no longer serializable

2016-11-22 Thread gim...@ferrari-electronic.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Gimpel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39699  
 
 
  regression: arrays of objects no longer serializable   
 

  
 
 
 
 

 
Change By: 
 Thomas Gimpel  
 
 
Component/s: 
 workflow-cps-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 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-39699) regression: arrays of objects no longer serializable

2016-11-21 Thread gim...@ferrari-electronic.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Gimpel commented on  JENKINS-39699  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: regression: arrays of objects no longer serializable   
 

  
 
 
 
 

 
 Currently we are using arrays of objects in order to handle a large number of GIT repositories in the following way: 

 

class Repository
{
String name;
String branch;
String url;
};

/*
 * List of all GIT repositories
 */
def Repository[] repositories = [
[
name:   "repo1",
branch: branch1,
url:"git@gitmaster:repo1.git"
], [
name:   "repo2",
branch: branch2,
url:"git@gitmaster:repo2.git"
], [
name:   "repo3",
branch: branch3,
url:"git@gitmaster:repo3.git"
]
];
stage('GIT checkout') {
 node() {
for (int i = 0; i < repositories.size(); i++) {
   Repository repo = repos.get(i);
   rmDir(repo.name);
   //cloneGitRepository(repo.url, repo.branch, repo.name);
}
 }
}
 

 This code is broken with pipeline-groovy-plugin 2.23. Since we do not see a practicable alternative for the code above the issue is blocking for us now.  
 

  
 
 
 
 

 
 
 

 
 
 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 

[JIRA] (JENKINS-39699) regression: arrays of objects no longer serializable

2016-11-21 Thread gim...@ferrari-electronic.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Gimpel updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39699  
 
 
  regression: arrays of objects no longer serializable   
 

  
 
 
 
 

 
Change By: 
 Thomas Gimpel  
 
 
Priority: 
 Major Blocker  
 

  
 
 
 
 

 
 
 

 
 
 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-39699) regression: arrays of objects no longer serializable

2016-11-13 Thread gim...@ferrari-electronic.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Gimpel created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39699  
 
 
  regression: arrays of objects no longer serializable   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2016/Nov/13 4:08 PM  
 
 
Labels: 
 pipeline exception regression  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Thomas Gimpel  
 

  
 
 
 
 

 
 Following pipeline worked in Pipeline Groovy Plugin 2.22, but not in version 2.23: 

 

class C
{
String a;
String b;
};

def C[] c = [
[
a:   "AAA",
b:   "BBB"
]
];

node {
}
 

 In version 2.23 following exception is thrown instead: 

 
java.io.NotSerializableException: C
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:778)
	at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
	at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
	at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
	at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
	at java.util.HashMap.internalWriteEntries(HashMap.java:1785)
	at