org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.text.SimpleDateFormat java.lang.String at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectNew(StaticWhitelist.java:185)
How should I be setting a timestamp value that I can reuse over throughout the rest of my build?
Thanks,
Greg
Probably you simply want to allow that finding call.
Open the /scriptApproval screen for that purpose.
Depending on what you're trying to do. Maybe using long start = System.currentTimeMillis() would suit your needs and be already whitelisted (can't check just now).
HTH
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fae69470-a517-4167-a9fb-655170f92084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.