I've experienced a strange behavior, when working with the Active Choices Reactive Reference Parameter.
The use case was to set the parameter value to the actual Jenkins job name, as a fallback for missing referenced parameter value.
The Groovy code:
.. where the '1_ARTIFACT' is the referenced variable.
The above works as expected, when one creates a project and saves it in Jenkins UI.
It stops working though, after Jenkins restart.
After some investigation I've realized that the 'jenkinsProject' variable is missing in the binding after fresh Jenkins start (or restart).
When one goes then into the job configuration UI and presses the 'Save' button (no changes required), the above code starts working again, because the 'jenkinsProject' variable is injected into the binding.
It doesn't matter if the Groovy script is embedded in the parameter config or stored and referenced as Scriptler script, the bahavior is the same.
Apparently the 'jenkinsProject' variable is not being initialized for the org.biouno.unochoice.DynamicReferenceParameter during the Jenkins start.