Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,644,518
Community Members
 
Community Events
196
Community Groups

Java specs, single pipeline for multiple projects/repos

Edited

Hello, 

I'm really interested in adopting Bamboo's CasC model, but I'm currently struggling a bit to find best practices/docuementations/tutorial to implement the below scenario:

I have 50+ (Java) projects, each one living in a separate repository on Bitbucket. Thus, 50+ repository. I would like to have a common shared Pipeline for all of them. 

How to achieve this? 

I managed to create a project specific pipeline (held in bamboo-specs folder), but I cannot afford having 50+ different pipeline definition, as tasks defined in this pipeline might change over time...

What I would like to have ideally is a project independent repo containing only the pipeline definition... and somehow instruct Bamboo to fire the defined stage/jobs/tasks every time a new push is made on any branch of the above mentioned 50+ repos.

Is this somehow feasible (without hardcoding repo references in pipeline project) ? 

My company CI runs on Bamboo 6.8.1. 

Thanks a lot, 

Andrea

1 answer

The approach that we are trying to take is to place the standard pipeline code into a Java library (JAR file hosted in our own Maven repo) and then just import that library in the Java project repo's bamboo-specs folder. We have something working, but we're hitting an issue where Bamboo's SecurityManager is restricting our use of certain calls that it considers to be dangerous.

I hope that helps, but let me know if you want more details.

Cheers,

Ian

Hello Ian, thanks for your reply. 

Importing the code as a library is also an option for us, but as per first attempts we were not able to do so.

What we did is: 

- we created a library (with bamboo java spec mvn dependencies) containing all our pipeline related code;

- imported the above one in a pilot project

- Tried to run the pipeline on Bamboo but remote maven installation was not able to resolve our custom library (even if it's published on a private nexus repo and available for download). As per bamboo's logs it seems that pom.xml file (defined in bamboo-specs folder) gets cleaned from custom dependencies... Have you maybe experienced something like mentioned in this thread ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events