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

1 vote
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.

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.

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
Community showcase
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

268 views 4 2
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