Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Bamboo Source code checkout ignores alternative sub-directory Edited

I created a plan where I want to checkout the sources from three different repositories in an alternative sub-directory each.

Bamboo creates the sub-dirs in the working directory but checks out the source code to the working dir root.

As the source dir is cleaned up before checkout I got the sources of one repo only.

Bamboo Version: 5.15.3 build 51515
Source Code Repo: Plastic SCM plugin 5.10.1

 

UPDATE: issue still occurs with Bamboo 6.3.0
Even if there is only one repo the sub directory option doesn't work. Maybe it's an issue of the plasticscm plugin. 

2 answers

0 votes

Hi Gerald,

 

Bamboo doesn't do that automatically, but an alternative to this could be to break up the steps into discreet script tasks. So, task1 checks out the first target repo and copies it to the desired directory, task2 and 3 do the same thing, then task 4 does whatever he needs to with the local copies.

Hopefully this helps.

Cheers,

Branden

Thanks for the reply. I'll try this workaround.
However the source code checkout task offers the possibility to checkout the source to a different directory. So it should work.

Screenshot from 2018-01-09 14-25-35.png

update: I upgraded bamboo to 6.3.0 build 60304 and the issue remains.

0 votes
rsperafico Atlassian Team Jan 09, 2018

Hello @Gerald Ortner,

I want to checkout the sources from three different repositories in an alternative sub-directory each.

As the source dir is cleaned up before checkout I got the sources of one repo only.

Since you mentioned the build is checking out of 3 repositories, you will be required to provide distinct "Checkout Directory" to each of your repositories, e.g.:

(Task 1) Source Code Checkout A
* Checkout Directory = directoryA

(Task 2) Source Code Checkout B
* Checkout Directory = directoryB

(Task 3) Source Code Checkout C
* Checkout Directory = directoryC

As a result, you will have in the Build Working Directory

<bamboo-home>/xml-data/build-dir/PROJ-PLAN-JOB1/directoryA
<bamboo-home>/xml-data/build-dir/PROJ-PLAN-JOB1/directoryB
<bamboo-home>/xml-data/build-dir/PROJ-PLAN-JOB1/directoryC

Kind regards,

Rafael

Hi Rafael,

that's what I did.

Here's the complete task config

Screenshot from 2018-01-09 15-06-21.png

 

 

After running the job only the source files of repo 3 (embeddedserver) exist in the working directory. The sub directories have been created but are empty.

rsperafico Atlassian Team Jan 09, 2018

Hello @Gerald Ortner,

Thank you for your update.

Could you please make use of 3 Source Code Checkout tasks as suggested previously?

Kind regards,

Rafael

Hi @rsperafico
even when I create just one task that checks out the source to a differen t directory the source remains in the working directory. 
Meanwhile I guess it's an issue of the plasticscm plugin because I tried the same with a git repo and it worked fine.

rsperafico Atlassian Team Jan 09, 2018

Hello @Gerald Ortner,

Please, get in touch with 3rd party vendor explaining the issue you are experiencing, so they can review the plugin and release a new version with a fix.

Kind regards,

Rafael

I informed the vendor about this issue. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

179 views 4 6
Read article

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