Whenever a certain condition is met in the Execute shell of the Post-build step to build successfully , I want to call send email. The problem is that even if the condition is not met, the assembly is considered successful.
What I'm trying to implement:
if [condition == true]; then
<do some action1>
exit 0;
else
<do different action2>
exit 0;
fi
The exit codes are 0, since both of the above actions are valid and this is successful . How do I send a message to Success based on some criteria in Jenkins?
source
share