-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Steps to Reproduce
- Create a Freestyle job.
- In Post-build Actions add Flexible publish → Conditional action.
- Inside the Conditional action, add Scriptler (builder) and select a Scriptler script (the script is marked "allowed for RunScript").
- Save the job, reopen Configure.
Expected
The selected Scriptler script remains selected.
Actual
The dropdown reverts to "(Default)" after saving.
Note: the same Scriptler step does persist if added under Build Steps (i.e., not wrapped as a post-build action).
Workarounds
- Downgrade Scriptler to 363.vd97ef616cb_f9 (selection persists).
- Or replace the Scriptler step with Groovy Postbuild/PostBuildScript in the Conditional action; or move the condition to Build Steps.
("Any Build Step" allows wrapping builders as post-build actions, but some wrapped steps don't round-trip config cleanly.) Jenkins Plugins+1
Notes / Likely Cause
Flexible Publish wraps builders as publishers via Any Build Step. With Scriptler 397..., the builder's form data doesn't deserialize properly in that wrapped context, so the UI falls back to "(Default)" on save. Older Scriptler 363... doesn't exhibit the problem. There's prior history of Scriptler config resetting on save in other contexts (different trigger, same symptom).