It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Move latest files with deployment task

John Cheripka Mar 26, 2014

I have a git "database" repository that contains various sql files. In bamboo, I get the latest files from Stash using the "Source Code Checkout" task. I would like to move the new/updated sql files to the same location I am putting my artifacts.

In the deployment task I use the "artifact download" task to put all of the shared artifacts in one location.

Is there a way to put my new/updated sql files in the same location as the artifacts?

2 answers

0 votes
Pawel Skierczynski Atlassian Team Mar 27, 2014

I wonder if you could create new artifact path in a build so that it points to latest sql files. So your sql files become one of artifacts and you can treat them as other artifacts.

John Cheripka Mar 27, 2014

Hi Pawel, I am interested in learning more about this. How would I create a new artifact path so that it points to the latest files?

My concern is if I create an artifact definition of *.sql how would this differentiate from new/updated files and the ones that were not.

0 votes
Pawel Skierczynski Atlassian Team Mar 29, 2014

I wanted to check this first to make sure it works as I thought.

You want to checkout source code in the same build that you are creating other artfacts for this deployment.

Check to what directory "Source Code Checkout" task is retrieving sources. It's probably 'src'.

Then go to "Artifacts" tab. Create new definition.

  • Name whatever you like.
  • Location must be directory of your sources in build (probably "src")
  • Copy pattern assuming you want all files in all subdirectories will be "**/**"

Last but not least make sure that you check "Shared" so this artifact is seen by deployment project.

For some screens you can start here: https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job%27s+build+artifacts

After build with new configuration is done you should see new artifact in deployment configuration.

To read more about it look here: https://confluence.atlassian.com/display/BAMBOO/Sharing+artifacts#Sharingartifacts-Sharingartifactsfromabuildplantoadeploymentenvironment

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

82 views 3 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you