S

Satya • 3.38K Points
Extraordinary

Q. What is the purpose of the 'catchError' block in Jenkins pipelines?

  • (A) To catch syntax errors
  • (B) To retry failed builds
  • (C) To handle build errors gracefully without failing the pipeline
  • (D) To log debug information
  • Correct Answer - Option(C)
  • Views: 34
  • Filed under category Jenkins
  • Hashtags:

Explanation by: Satya

'catchError' allows steps to continue even if a specific block fails, and handles errors gracefully.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.