Scripts not permitted to use staticMethod java.lang.Math max int int

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

XMLWordPrintable

      Scripts not permitted to use staticMethod java.lang.Math max int int

        last_run = selectRun filter: parameters("Target_OS=CentOS${os}"), job: env.JOB_NAME, selector: status('STABLE'), verbose: true
        id_to_copy = Math.max(id_to_copy,last_run.getId() as int)
      

      Expected outcome: ability to use, or at least approve under /scriptApproval/, Math.max(). If there's a better way to do it, I am a groovy noob and just copying examples in most places.

            Assignee:
            Andrew Bayer
            Reporter:
            Aaron D. Marasco
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: