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 Java specs - local .m2 repository

Deleted user Dec 23, 2019

Hey,

 

I'm trying to create some shared libraries for Bamboo Specs, I install this package in the bamboo server using mvn install and added in the bamboo specs dependencies.
but when bamboo try scan the repo he spin up a Docker image and run the mvn processes, because he does that he don't use my local .m2 and don't find my package.

If everything work well I will add this package in a private repository, how do bamboo ready dependencies from local .m2 or private repository?

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>
<dependency>
<groupId>com.magic</groupId>
<artifactId>magic-specs</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>

1 answer

1 accepted

1 vote
Answer accepted

Hi @[deleted] ,

Bamboo comes bundled with Maven due to Bamboo Java Specs and you can find the directory under BAMBOO_INSTALL/tools/maven

"...when bamboo try scan the repo he spin up a Docker image and run the mvn processes..."

It is running on Docker because under Bamboo administration >> Security >> Security Settings >> Security and permission >> Repository Stored Specs security settings (/admin/viewSecurity.action) you may have Process Bamboo Specs in Docker selected.

If you want to have your custom dependencies available to your Java Specs, then you could edit BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml

Regarding on the Docker Image used by Bamboo, it seems to make use of https://hub.docker.com/r/atlassian/bamboo-specs-runner, however, it does not seem to provide with a way to mount a volume. Therefore, you should be running Bamboo Java Specs against Bamboo Server instead.

Kind regards,
Rafael

Hi @[deleted] ,

If you are running Bamboo v6.9 or above, you have under Bamboo administration >> Security >> Security Settings >> Security and permission >> Repository Stored Specs security settings >> Process Bamboo Specs in Docker the option of:

  • defining your own Docker Image for Repository Stored Specs (RSS).
  • (Location directory) Use an external Maven configuration directory

Screenshot 2020-01-03 at 11.44.17.png

Kind regards,
Rafael

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

223 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