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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How do I add git capability to agent for Per Build Container builds?

We are working to get our Bamboo builds running in a K8s cluster.  We have the PBC plugins installed and configured, sidekick image created and our test plan seemS to be running OK (within OpenShift) but when the Source Code Checkout task executes, getting our source code from Bitbucket, I see the message "Submodules handling requested but no native Git capability defined for agent. Please define native Git capability for agent to use submodules." in the log file.

I've created a new sidekick image adding:

/buildeng/bamboo-update-capability "system.builder.command.Git" "/usr/bin/git"

to the file setup.sh and added:

Add setup.sh /buildeng-custom/

to the Dockerfile

I then ran the container locally via docker run and verified that the file and contents were there and in the correct location.

docker run --rm -it bamboo-agent-sidekick
# cat buildeng-custom/setup.sh
# GIT capability
/buildeng/bamboo-update-capability "system.builder.command.Git" "/usr/bin/git"

When I re-run the job I'm still getting the same error.

Can someone tell me how configure the system this so that I can do submodule updates?

Thanks






 

2 answers

1 accepted

2 votes
Answer accepted
Duke Atlassian Team Jul 02, 2020

I am not sure about "system.builder.command.Git". Have you tried "system.git.executable"?

/buildeng/bamboo-update-capability "system.git.executable" "/usr/bin/git"

See Submodules handling requested but no native Git capability defined for agent. Please define native Git capability for agent to use submodules for more details.

Thanks.  That seemed to get one step further.  Now getting "Permission denied (publickey)".  We are using linked libraries and I have tried saving the repository configuration to refresh the authentication details multiple times as well as putting the access key into Bitbucket manually without avail.

Any thoughts?

Duke Atlassian Team Jul 02, 2020

It's great that "system.git.executable" got you one step further. Now it looks like you hit the issue discussed in BAM-11369. I suggest trying the workaround in Permission denied (publickey) submodule after upgrade.

Can you please share your Helm chart? We may suggest for you some cloud-native recommendations (using initContainers, configmap,... instead of building image on top of the official image, ... so on) ?

Suggest an answer

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

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

555 views 6 7
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