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