Hello i'd like to know if in declarative pipeline there is a way to use conditions like failure and/or success in a generic stage (example: stage('build docker image)), the idea is to make the execution of a stage (here building a docker image) conditional to the success or failure of the previous stage. If those conditions are not usable in a generic stage, are there ways to still do this in a declarative pipeline Jenkisnfile?
I could use post, but i would like to know if i can use a much more explicit stage for building the image.
regards