Running automated tests after pipelines aws deployment

We have a site that uses Pipelines to deploy onto AWS Elastic Beanstalk, is there a way using either AWS and/or Pipelines to trigger automated tests (on Bitbucket) to run post deployment?

3 answers

1 accepted

Hi @alexwhiteoval,

A workaround for this problem is to commit to the dependent repo after the deployment has completed to create a new pipeline there to begin the selenium tests. Another option is to manually post a pipeline creation request to the Bitbucket api for the dependent pipeline as detailed here https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pipelines/#post.

There's a feature request here https://bitbucket.org/site/master/issues/13661/trigger-build-of-dependent-repos-after and you can comment on it with the specifics of what you would want out of this feature.

Cheers,

Tom

I will add to the feature request, thank you

That is correct.

 

To elaborate: once the first code deploy (web app) has completed, we need to then run the tests (selenium/saucelabs) in another repository in another pipleline.

Hey @alexwhiteoval,

I'm not sure I fully understand. It sounds like you're trying to deploy code from one repository using a pipeline and, when that pipeline has finished, to run tests stored in another repository in another pipeline. Is that correct?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

663 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot