Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75997

Scriptler builder inside Flexible publish → Conditional action resets to "(Default)" on save (regression in Scriptler 397)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • scriptler-plugin
    • None

      Steps to Reproduce

      1. Create a Freestyle job.
      1. In Post-build Actions add Flexible publish → Conditional action.
      1. Inside the Conditional action, add Scriptler (builder) and select a Scriptler script (the script is marked "allowed for RunScript").
      1. 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).

            Unassigned Unassigned
            nicksjacobson Nick Jacobson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: