Jenkins pipeline library with common functionalities for CI/CD environments, mainly targeted for the implementation of the SQA baseline requirements from https://indigo-dc.github.io/sqa-baseline/
Apache License 2.0
11
stars
6
forks
source link
Support for keeping the pipeline running when a stage fails #162
For the SQAaaS' Quality Assessment & Awarding module, all the stages will need to be executed no matter if they fail. The default behaviour of Jenkins is to stop the pipeline whenever a stage fails so JePL will need to rely on catching the exceptions in order to allow the execution to continue.
For the SQAaaS' Quality Assessment & Awarding module, all the stages will need to be executed no matter if they fail. The default behaviour of Jenkins is to stop the pipeline whenever a stage fails so JePL will need to rely on catching the exceptions in order to allow the execution to continue.
The Pipeline: Basic Steps plugin provides a very handy
catchError
method, which can be combined with the scripted'stry/catch
statement in order to provide this functionality to JePL.This functionality shall be passed as an argument of
pipelineConfig()
method, as the Jenkins' default behaviour should be preserved.