Details
-
New Feature
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
A replacement for SecretBuildWrapper that is a Step (with invokeBodyLater) rather than a BuildWrapper, probably returning the binding(s) in a map.
Means some API changes to Binding. bind must take a FilePath workspace (and maybe Run run) rather than AbstractBuild build. And Environment must be declared Serializable, since unbind may be called in another session.
Attachments
Issue Links
- depends on
-
JENKINS-26137 Mysterious serialization errors
-
- Closed
-
-
JENKINS-24673 SimpleBuildWrapper
-
- Resolved
-
- is related to
-
JENKINS-23468 Support multiple variables per binding
-
- Resolved
-
-
JENKINS-26099 Configurable ID for Credentials
-
- Resolved
-
-
JENKINS-26299 Enable access to credentials within CPS workflow scripts
-
- Resolved
-
- links to
Code changed in jenkins
User: Jesse Glick
Path:
support/src/main/java/org/jenkinsci/plugins/workflow/support/pickles/serialization/RiverWriter.java
http://jenkins-ci.org/commit/workflow-support-plugin/18ad074331b663f565633bf4fa8523ac68dc1a69
Log:
JENKINS-26137At least during restarting tests, serialization errors seem to be due to there being no PickleFactory’s installed.Merely calling PickleFactory.all() from the RiverWriter constructor, rather than later, seems to let PushdStepTest.restarting pass (
JENKINS-26051).Additionally asserting that there are in fact some factories loaded, since there is sure to be trouble if there are not.
Also need to wait for the build to finish (
JENKINS-26399).Originally-Committed-As: 3d3fa348ed9c34e4492b2733802bc47416824e30