success, failure... in generic stage

14 views
Skip to first unread message

Eddard

unread,
Dec 8, 2016, 8:56:46 AM12/8/16
to Jenkins Users
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
Eddard


Reply all
Reply to author
Forward
0 new messages