This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Please whitelist java.util.concurrent.atomic.AtomicInteger, currently this must be approved explicitly otherwise a

      def cnt = new java.util.concurrent.atomic.AtomicInteger(42)
      

      results in

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.util.concurrent.atomic.AtomicInteger int
      

      Rationale for using this is ensuring there are no concurrency issues when using parallel pipeline stages. The curent implementation of the Jenkins pipeline may not have concurrency issues, but that could change in the future and parallel code should be written in a proper way no to make assumptions

            Assignee:
            vjuranek
            Reporter:
            Axel Heider
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: