Hi ,
I have a bitbucketpipelines and i have defined the email notify pipe inside it.
i want to send email based on some if condition but rest of the code must execute . i have written the if condition but its exit when meet the condition and not executing scripts defines after that .. ie. i want to execute ./deployment.sh always
e.g.
Hi Deepak and welcome to the community!
The only way to achieve what you want at the moment is by placing the if command and the pipe command at the end of your script in your yml. So, first execute all the other commands, including ./deployment.sh, and then add the if statement and the pipe.
This is the only way because it is not possible to include the pipe in the body of an if statement.
We have a feature request for this that you can vote for here: https://jira.atlassian.com/browse/BCLOUD-20555
Please feel free to reach out if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.