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

Hello, our company uses the hosted companyname.jira.com 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

0 vote

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 Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,764 views 1 5
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