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,695
Community Members
 
Community Events
196
Community Groups

Reuse same yaml specs in multiple repositories

Edited

Hi, I'm using Atlassian Bamboo 7.1.1.
I'm creating pipelines as a code using YAML.
I have one git repository with a YAML specs to reuse in multiples pipelines. Let's call this repo: common-specs
Then, I have a repository per microservice.

My idea is to have one bamboo-specs/bamboo.ym` in each microservice repo like this:

# Microservice 1 repository:

---
version: 2
# ...
Build job: !include 'common/build-job.yml'

Where build-job.yml file comes from the common-specs repo.

So, I tried using git submodules (in each microservice repo) but I can't make it work.

I create a Linked repository and then I a Specs Scan and bamboo show:

Cloning into /path/to/submodules ...
Permission denied (publickey)
fatal: could note read from remote repository

When bamboo tries to clone the git submodule.

Notes:
- I'm using bamboo "linked repositories" using native GIT with my SSH shared credentials (created by me before).
- I enabled submodules.
- The SSH key is the right one! I can clone it on my local.
- Just in case: I also put the same SSH key (id_rsa) on the bamboo "Agent" and modified the ~/.ssh/config to use it.

I think the problem is that bamboo is not running this SCAN on the agent. It's running in the bamboo server. Am I alright? In that case, why is not bamboo able to clone the submodule? I'm using the same credentials in the repository and in the submodule.

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 10, 2021

Hi @cmanzur , 

will it help if you add task script to git pull the sub module ?

Looks like that workaround will meet your requirements

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events