Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Duplicate
Description
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.
Attachments
Issue Links
- duplicates
-
JENKINS-49014 Ability to "Keep this build forever" from Pipeline DSL
-
- Resolved
-
- links to
+1
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
-M