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>
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:
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.