Hello guys!
Our team has experience with Jenkins. But first time we get a task when we need to connect to database for getting list of values for select box, which should be build parameter.
Failed to execute scriptorg.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod groovy.sql.Sql newInstance java.lang.String java.lang.String java.lang.String java.lang.String
at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:192)
This is more or less predictably because of security reason…
How should such task be done right?
Please advice.
Best regards,
Andrey