Is it possible to deploy to another webserver with the hosted solution?

Hello, our company uses the hosted solution for our PHP projects. I have bamboo setup to run phpunit currently. Would it be possible to either svn export or remote svn update one of our webservers for continuous integration?

1 answer

1 accepted

This widget could not be displayed.

Just to clarify - you'd like to remotely update your websites as part of your build? You could set up a script builder within a Job that would do it.

Depending on your use case, it may be simpler once Studio is updated to the next Bamboo release which includes support for tasks - that would let you structure your build more easily.

Right, we use JIRA svn, commits cause Bamboo to initiate a PHPUnit job. At this point 1 of the developers has to update files on our QA webserver (rackspace hosted if it matters) and instead we would like for this to be handled automatically when a successful PHPUnit test completes.

I'm still learning the ropes, when you say setup a script builder, would I need to write an ant task that can work with svn and ftp into our server to transfer updates?

Create a new stage in your plan - it will be run only if your job in first stage completes successfully. In that stage, add a job with a script builder. In this way, you don't need an ant task, you can write a script in Bash. You can use the variable custom.svn.revision.numberto find out which revision was used to trigger your 'green' build.

Thanks for your help.

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 Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

245 views 14 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