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

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

Can you configure GitHub with custom URL?

We have a custom URL from GitHub like There does not seem to be any option to do that in Bamboo 5.8.1!

I am currently configuring our repositories as linked Git repositories and also specifying the repository ssh URL with the private key and branch.

It looks like I have to create a linked repository whenever I need to provide a different branch! In that sense, the bamboo linked repository is more like a 'repository + branch + key'. Is there an alternative where I can specify branch while specifying the source code checkout task or similar?

I have the same key for all my repositories. Do I need to specifically upload it whenever I specify a Bamboo linked repository? Is there a way I can just upload the key once as a global fall-back key for all repositories?

1 answer

1 accepted

1 vote
Answer accepted

You should be able to configure GitHub's base URL using system property atlassian.bamboo.github.api.base.url by default it is set to

Regarding your second question. Can you please describe your scenario with more details? Why is your top level Plan using branch of the repository? Did you have a chance to read this documentation: ?

Is there any other way to set system variable other than ? I am interested in knowing if there is a GUI/Web UI way to do it. (Of course, it will need restart?)

There's no GUI for that

I, too, have a github Enterprise.  The property you mention is set where?  bamboo.cfg.xml?  

How do I set up this property - atlassian.bamboo.github.api.base.url?  Please provide answer.

You can add a define flag to your java options in

JAVA_OPTS="$JAVA_OPTS -Datlassian.bamboo.github.api.base.url="http(s)://your.github.instance.url/api/v3/" 

Once I did this, the github repository option allowed me to pick a repo (you'll have to provide it with a user name and a token configured to enable at least the read:org and read:user scopes).

But - it appears that "" is hard-coded in some other locations.  The plan starts emitting these errors: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://xxx:******** failed with code 128. Working directory was [/bamboo/bamboo-home/xml-data/build-dir]., stderr:remote: Invalid username or password.

 (username and other details obfuscated).  I'm not sure how to get past this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

250 views 1 2
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