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

Groovy Postbuild under Promotion Actions always opens empty "Classpath entry" resulting "Save" exception

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Ubuntu 16.04
      Jenkins ver. 2.46.2 LTS
      promoted builds plugin v2.28.1
      Groovy Postbuild v2.3.1

      Under "Promotion Actions",
      when using "Groovy Postbuild" action,
      by default,
      it always opens an empty "Classpath entry" field everytime.

      If I forgot to click "x" to remove the field,
      and click "Save" or "Apply" button,
      then Jenkins would throw exception error.

        1. Selection_023.png
          Selection_023.png
          46 kB
        2. Selection_024.png
          Selection_024.png
          214 kB
        3. Selection_025.png
          Selection_025.png
          208 kB

          [JENKINS-49487] Groovy Postbuild under Promotion Actions always opens empty "Classpath entry" resulting "Save" exception

          Oleg Nenashev added a comment -

          The issue is not specific to Promoted Builds, it's how the Script Security plugin gets rendered due to its layout. IMO it should be fixed on its side

          Oleg Nenashev added a comment - The issue is not specific to Promoted Builds, it's how the Script Security plugin gets rendered due to its layout. IMO it should be fixed on its side

          Andrew Bayer added a comment -

          oleg_nenashev Actually, isn't this Groovy Postbuild?

          Andrew Bayer added a comment - oleg_nenashev Actually, isn't this Groovy Postbuild?

          Giuseppe Verdoliva added a comment - - edited

          Giuseppe Verdoliva added a comment - - edited Fix this issue: https://github.com/jenkinsci/script-security-plugin/pull/208

            Unassigned Unassigned
            totoroliu Rick Liu
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: