Issue
- Whenever I print out the field:
currentBuild.result
it isnull
. When does this get set or am I supposed to set it?
Environment
- CloudBees Jenkins Enterprise
- Pipeline
Resolution
Avoiding setting currentBuild.result
manually. Instead use the catchError
step in Scripted Pipeline, or a post
block in Declarative.
5 Comments