On Sun, Nov 29, 2020 at 10:36 PM Michael Carter
<[hidden email]> wrote:
> So Stapler.getCurrentRequest().findAncestorObject(Job.class); doesn't work inside the getDefaultParameterValue
No, because there is no HTTP request here. I do not think
`ParameterDefinition.getDefaultParameterValue` has any way of
determining which `Job` it is associated with (if indeed there is a
single unique answer).
Maybe you should revisit your design. Use a stock
`ParameterDefinition` type, but have a `RunListener` update its
default value after a build passes?