Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to do Post build scripts for pipeline?

Deleted user July 6, 2017

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?

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 23, 2017

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.

Deleted user July 24, 2017

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events