Sandbox is preventing me from formatting a string

為{幸葍}努か 提交于 2019-12-01 06:22:36

I think it's not possible to disable sandboxing when using Workflow script from SCM

However you can approve the usage here:

http://<jenkins_host>:<port>/scriptApproval/

How do I work around this?

Possibly (untested)

String.format("bob", [])

rather than using varargs. At any rate you should file a bug in JIRA (component script-security-plugin, label workflow) with steps to reproduce.

Is it possible to turn off the sandbox for "Workflow script from SCM" like it is for "Workflow script"?

No: JENKINS-28178

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!