jenkinsci / jenkinsci/script-security-plugin

[JENKINS-35071] Do not compile script on every evaluate

Open
#689 1 comment 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue performance priority:major resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

SecureGroovyScript.evaluate always parses the Groovy script. There should be an option to cache the parsed script (it is final). Otherwise the performance for some use cases is poor (if the script is called very often). (For details see JENKINS-14614">JENKINS-14614).

---
Originally reported by drulli, imported from: Do not compile script on every evaluate


  • assignee: jglick
  • status: Open
  • priority: Major
  • component(s): script-security-plugin
  • label(s): api, performance
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-09

Raw content of original issue

SecureGroovyScript.evaluate always parses the Groovy script. There should be an option to cache the parsed script (it is final). Otherwise the performance for some use cases is poor (if the script is called very often). (For details see JENKINS-14614).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.