jenkinsci / jenkinsci/script-security-plugin
[JENKINS-56651] Script security rejects Java method - no option to approve it
- Dominant language
- Java
- Stars
- 76
- Forks
- 181
- Avg merge
- 14h 55m
- Merged PRs (30d)
- 3
Description
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?
---
Originally reported by
piratejohnny, imported from: Script security rejects Java method - no option to approve it
Raw content of original issue
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?
- environment:
Jenkins ver. 2.166
Contributor guide
Assessment
This issue has not been assessed yet.