After running our selenium test for our site, it would either generate a passing or failing report. If a test is already failing, then the build will already stop. Is there a way to do a post build script where it will run regardless if the build fails or pass and get the output of from the pipelines result?
Hi John,
There is a feature request for multiple steps that would allow you do this - you can follow it here: https://bitbucket.org/site/master/issues/12750/allow-multiple-steps.
As a workaround, you can add
<test command> || true
to continue the build and execute a script.
The caveat of course is the build won't reflect the correct status.
Hi Davina,
I will try the work around you've suggest. My only concern is that the test is done so if it fails it won't continue deploying a bad code to the next environment. That's why a post build script would be great so we can setup getting of reports and sending it to people. Anyway, the multiple step might be the feature we really need for this. Hopefully we can have this asap. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.