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
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

537 views 0 9
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