-
Improvement
-
Resolution: Duplicate
-
Minor
Specifically, CpsFlowExecution holds the loaded scripts, which are potentially large:
And the main script:
We don't need to load these EVERY time we load a build. We could lazy-load them as needed (should happen once in a blue moon I hope).
Reducing the number of times we have to re-persist the build.xml would help even more though - https://issues.jenkins-ci.org/browse/JENKINS-47174
- is blocked by
-
JENKINS-39489 Loading pipeline builds is expensive because they store scripts
-
- Open
-
jglick This tracks the issue you'd mentioned with the scripts (though I hope to make that less of an issue by reducing save/re-save cycles for the execution and build).