Upgrade Notes
item.getInstance()compatibility preserved for sandboxed scripts-
This fix addresses an upstream change in the Script Security plugin (
script-security) that would have brokenitem.getInstance()anditem.instanceaccess in sandboxed scripts.item.getInstance()anditem.instancecontinue to work as expected in templates and Pipelines.
Known Issues
- Script Security plugin sandbox change causes Pipeline scripts to fail on
nullstring concatenation -
Starting with CloudBees CI 2.568.3.37913, the Script Security plugin (
script-security) sandbox intercepts operations performed on anullreceiver as part of the SECURITY-3931 fix. This causes sandboxed Pipeline scripts that concatenate a string onto anullvalue to fail with the following error:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method org.codehaus.groovy.runtime.NullObject plus java.lang.String
For example:
def foo = null foo += "bar"
Prior to CloudBees CI 2.568.3.37913, the same script ran without error and returned nullbar (Groovy silently coerced the null value to the string "null" before concatenating).
|
Two workarounds are available:
-
Approve the resulting prompt in .
-
Update the affected Pipeline script to initialize the variable to an empty string instead of
nullbefore appending to it:def foo = "" foo += "bar"
The same change affects other explicit method calls on a null value, which are less likely to be encountered. These include:
| Operation | Rejected signature |
|---|---|
|
|
|
|
|
|
|
|
This issue is resolved in Script Security plugin 1429.v0810f1b_530f5.
- Duplicate plugins in the Operations center Plugin Manager UI
-
When you search for a specific plugin under the Available tab in the Operations center Plugin Manager, the search results show duplicate entries for the plugin.