Sometimes you don’t want Jenkins pipeline failed for a specific error occurs. so you can use catchError
to catch error and update stage or build result to SUCCESSFUL
or UNSTABLE
or FAILURE
(if you want)
Here is the Jenkinsfile of pipeline
pipeline { |
Here is the output of pipeline
17:14:07 [Pipeline] Start of Pipeline |
转载本站文章请注明作者和出处,请勿用于任何商业用途。欢迎关注公众号「DevOps攻城狮」