Bamboo access artifact download in deployment?

I am trying to do something that I think should be simple. Please explain if I'm missing pieces in my reasoning, as I'm new to both BitBucket and Bamboo. 

I have a BitBucket Server remote repo living on my web server. All users can push/pull/commit etc to it. I'd like to set up that when a user commits, it automatically checks out the repo and places the files in the right place on the web server...the development web root directory. 

I asked about this here and it looked like doing this with just BitBucket requires writing custom code for a post-receive hook to pull from the web server. I do not want to take this route as I don't want to write custom code and don't even have php installed there.

Instead, I have tried Bamboo but here too am running against a brick wall. I have a build plan that is running successfully that checks out the code and creates a shared artifact called Files. I then automatically trigger deployment, which downloads the artifact into the working directory (successfully) and then tries to run a move script that looks like this:

move ${bamboo.build.working.directory} D:/path-to-web-root

I get an error that deployment fails:

The process cannot access the file because it is being used by another process. 

 

What's the problem? And is this major overkill just to check out the repo and get the files to the web root directory?

Thanks in advance.

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,093 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot