How to use Date with Pipeline? Bee Bot July 13, 2022 11:45 Updated The content of this article has moved to the new documentation site. Related articles How to set current build result in Pipeline? Pipeline - Build failed due to MissingPropertyException: No such property: env Groovy to list all jobs Pipeline - Equivalent to Git Publisher How to troubleshoot 'hudson.FilePath is missing' in a Pipeline run Comments 2 comments Sort by Date Votes Zillayt . June 12, 2018 15:44 Edited v2.126 I get the following exception when using this. I've upgraded Groovy plugin to v2.0. I also see Script Security Plugin v1.44 installed. I don't see any scripts needing approval shown in Manage Jenkins->In-process Script Approval section. ERROR: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.util.Date java.lang.String 0 Denys Digtiar June 12, 2018 23:17 It might depend on the groovy feature that you use to get the Date. Please review the discussion on JENKINS-27725 and let us know if it helps you resolve the issue. 0 Please sign in to leave a comment.