-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
pipeline 2.5, Jenkins 2.60.3
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.
- links to
[JENKINS-47666] Scripts not permitted to use staticMethod java.lang.Math max int int
Component/s | New: script-security-plugin [ 18520 ] | |
Component/s | Original: pipeline [ 21692 ] |
Assignee | New: Andrew Bayer [ abayer ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR #159 (Web Link)" [ 17961 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |