How can I trigger my automated test plan in bamboo on a successful deployment?

I have a bamboo plan which is triggered on repository changes. It in turn triggers a deployment project out to my CI server. This all works great except the last step in the process. How do I then trigger my automated test plan once my deployment has finished? It seems that deployments can't trigger plans, only plans can trigger deployments. Are there any ways around this?

3 answers

This widget could not be displayed.
Timothy Chin Community Champion Sep 21, 2015

Seems that you deployment should be part of the build plan instead of deployment plan. Have you considered the option of using 3 stages in your build plan?

yeah I've thought about that. The problem is that I want my CI build to create (which it does now) a release according to a naming convention template I've set up. Then the test teams can easily see which environments have this release and one click deploy it out. I can't do that if the build doesn't the deployment as there is no mechanism that I can find to create a release during a build.

This widget could not be displayed.

Deployment pipleline doesnt let you trigger a build plan. But a better way to go about is this

1) Have build plan create your artifacts/deployables.

2) Run the deployment pipleline

3) As a last step to deployment pipeline, run the automated test (which I guess would be some kind of scripts)

Thanks for the answer. The one reason I can't do that is because my test require saving of artifacts to work out what went wrong if any tests fail. The deployment pipeline doesn't support saving of artifacts.

This widget could not be displayed.

At the moment I've gotten around this by making the last stop of my build fire off a REST post request to the build api which kicks off my test plan.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

99 views 1 0
Join discussion

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