Status: Resolved (View Workflow)
as discussed on https://groups.google.com/forum/#!topic/jenkinsci-users/uTqSTRWC3M0
currentBuild.rawBuild.keepLog(true) requires sandbox script approval.
Should probably be exposed for 'currentBuild' and allowed in the sandbox.
JENKINS-49014 Ability to "Keep this build forever" from Pipeline DSL
- links to
Would be nice to have this available directly and properly, however there is a simple (in some cases) workaround - External Global Libraries. Since those are run outside the sandbox, you can simply write a small wrapper in an external lib like this:
Of course if you are not already using/needing external libs, this is a bit of a headache