S

Satya • 2.31K Points
Master

Q. What is the role of 'post { always { ... } }' in a pipeline?

  • (A) Run only if build fails
  • (B) Run only if build succeeds
  • (C) Always run the steps regardless of the result
  • (D) Skip steps in all cases
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Jenkins
  • Hashtags:

Explanation by: Satya
'post { always { ... } }' ensures that the steps are executed regardless of the pipeline's result.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.