I have a Jenkins job, that uses the pipeline mechanics. It has several steps. For understanding let's assume I have 3 stages. the first 2 run in parallel, the 3rd after them. Now depending on the result of the last build of stage 3 I want to do different thing.
If stage 3 was previously successful, I want the result from stage 1, otherwise take stage 2 result.
Is this possible to check? I don't get how to retrieve the last result of a stage, only did a similiar thing for last state of a job.
Jenkins – get the status of a previous stage build in Jenkins pipeline
Jenkinsjenkins-pipelinejenkins-workflow
Related Topic
- Jenkins – How to continue past a failing stage in Jenkins declarative pipeline syntax
- Jenkins – How to detect which parallel stage failed in a Jenkins declarative pipeline
- Jenkins – How to exit from the Jenkins pipeline if a stage sets build fail/unstable status
- Jenkins – Run stage only if previous stage was successful in Jenkins Scripted Pipeline
Best Answer