[JIRA] (JENKINS-61811) NotSerializableException using declarative parameter buildSelector

2020-05-06 Thread 'rob...@grizzell.me (JIRA)' via Jenkins Issues
Title: Message Title


 
 
 
 

 
 
 

 
   
 Robert Grizzell commented on  JENKINS-61811  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: NotSerializableException using declarative parameter buildSelector   
 

  
 
 
 
 

 
 This bug is also affecting us as well.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.205656.1585982479000.22950.1588799220124%40Atlassian.JIRA.


[JIRA] (JENKINS-61811) NotSerializableException using declarative parameter buildSelector

2020-04-03 Thread rhysmeac...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rhys Meaclem created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-61811  
 
 
  NotSerializableException using declarative parameter buildSelector   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Attachments: 
 job-failure.log  
 
 
Components: 
 copyartifact-plugin  
 
 
Created: 
 2020-04-04 06:41  
 
 
Environment: 
 Jenkins: 2.222.1  Copy Artifact Plugin: 1.43.1  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Rhys Meaclem  
 

  
 
 
 
 

 
 Using the Jenkinsfile below as an example of a declarative pipeline with buildSelector as a parameter: 

 

pipeline {
agent any
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Build Selector', name: 'BUILD_SELECTOR')
}
stages {
stage('Test') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'TEST', selector: buildParameter('BUILD_SELECTOR')
}
}
}
} 

 The Jenkins job will fail with the following error in the logs (full stack trace attached): 

 

2020-04-04 06:34:24.037+ [id=302]	WARNING	o.j.p.w.cps.CpsThreadGroup#saveProgramIfPossible: program state save failed
an exception which occurred:
	in field hudson.p