Reputation: 1219
I'd like to perform some verification before build a project. If verification are successful it builds the project, otherwise not. Currently I'm able to do this only creating more jenkins jobs and triggering the last only if the previous works.
Is it possible to replicate this behaviour with a pre-build step?
Thanks,
Upvotes: 1
Views: 376
Reputation: 6044
There is a conditional build step plug-in: https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin
You can use it to check arbitrary conditions (like a variable set by your pre-build step) before a build step is executed. Also mind that you can have several subsequent build steps in one projects.
Upvotes: 1