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

Extended Choice Parameter Plug in in Jenkins 2.0 always show that there are scripts to approve

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 2.0
      Extended Choice Parameter Plug-In 0.64

      It seeems that the Extended Choice Parameter Plug-In [tried version 0.64] and Jenkins ver. 2.0 don't work together.

      When I create a simple groovy script for the plugin and I try to launch the build it appears the message:

      "You have unapproved groovy scripts that need approval before they can be executed. Go to In-Process Script Approval page to approve your scripts."

      However in the approval page there are no scripts to be approved. See attached screenshot for the reference script I used.

      If the script is modified in the build configuration page, it is appearing correctly as a script to be approved. However approving it, will still display the message

      "You have unapproved groovy scripts that need approval before they can be executed. Go to In-Process Script Approval page to approve your scripts."

      This happened after the upgrade to Jenkins 2.0 from Jenkins ver. 1.656

        1. Selection_011.png
          Selection_011.png
          35 kB
        2. Selection_012.png
          Selection_012.png
          33 kB
        3. Selection_013.png
          Selection_013.png
          19 kB
        4. test_job.xml
          2 kB
        5. config-example.png
          config-example.png
          37 kB
        6. test_job_2.xml
          3 kB

          [JENKINS-34524] Extended Choice Parameter Plug in in Jenkins 2.0 always show that there are scripts to approve

          Davide Z. created issue -

          vimil added a comment -

          Could you also send me the screenshot of the script approval page?

          vimil added a comment - Could you also send me the screenshot of the script approval page?
          Davide Z. made changes -
          Attachment New: Selection_012.png [ 32577 ]
          Davide Z. made changes -
          Attachment New: Selection_013.png [ 32578 ]
          Davide Z. made changes -
          Comment [ Scripts to be approved appears empty ]
          Davide Z. made changes -
          Comment [ It seems that you still have to approve something even after you approve it ]

          Davide Z. added a comment -

          Added required screenshots. You can see the two pages:

          • Scripts to be approved appears empty
          • It seems that you still have to approve something even after you approve it

          Davide Z. added a comment - Added required screenshots. You can see the two pages: Scripts to be approved appears empty It seems that you still have to approve something even after you approve it

          vimil added a comment -

          Dav,

          I am finding it difficult to repro this issue. Is it possible for you to send me the config.xml for a test job that you're seeing this issue.

          vimil added a comment - Dav, I am finding it difficult to repro this issue. Is it possible for you to send me the config.xml for a test job that you're seeing this issue.

          Davide Z. added a comment -

          Attaching a test job for jenkins

          Davide Z. added a comment - Attaching a test job for jenkins
          Davide Z. made changes -
          Attachment New: test_job.xml [ 32593 ]

            vimil vimil
            dawez Davide Z.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: