Skip to main content

How to use Date with Pipeline?



  • Zillayt .



    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
  • Denys Digtiar

    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.


Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.