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

Script security rejects Java method - no option to approve it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • script-security-plugin
    • None
    • Jenkins ver. 2.166

       

      No such constructor found: new org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl com.cloudbees.plugins.credentials.CredentialsScope$2 java.lang.String org.codehaus.groovy.runtime.GStringImpl java.lang.Boolean.
      Administrators can decide whether to approve or reject this signature. 

      One of my pipelines syncs secrets from an external store into the local credentials store. On one of my Jenkins clusters, my code fails with a script security error. I have noodled around for an hour and I can't figure out how to solve. On the admin script approval page, the above mentioned function is not listed to be approved.

      What tricks or hacks are needed to get this to pass?

            Unassigned Unassigned
            piratejohnny Jon B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: