This is just a note to myself about the difference between Jenkins
result
andcurrentResult
.
Declarative Pipeline
Here is a test code from this ticket JENKINS-46325
pipeline { |
Output
Init result: null |
Scripted Pipeline
Here is a test code from cloudbees support case
Example that forces a failure then prints result:
node { |
Output:
Started by user anonymous |
Example that doesn’t fail then prints result:
node { |
Output:
Started by user anonymous |