Interview Prep/Jenkins/Declarative pipeline syntax

List the `post` conditions and when each fires.

IntermediateConceptDeclarative pipeline syntax
Answer
Condition Fires when
always Every time
changed Result differs from the previous build
fixed Now SUCCESS, previous was FAILURE or UNSTABLE
regression Now FAILURE, UNSTABLE or ABORTED, previous was SUCCESS
aborted ABORTED
failure FAILURE
success SUCCESS
unstable UNSTABLE
unsuccessful Anything other than SUCCESS
cleanup After all others, regardless of result

post can sit at pipeline level or stage level.

All Jenkins questions Roadmap: Jenkins

More on Declarative pipeline syntax