jenkinsci / jenkinsci/script-security-plugin

[JENKINS-56651] Script security rejects Java method - no option to approve it

Open
#826 0 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.