Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable git Bamboo Proxy for Source Checkout

Patrick Schneider August 4, 2022

Hi,

is there a way to disable the Bamboo Proxy for Git when using the Source Code Checkout Task and just use the native git command.

 

Best

Patrick

2 answers

2 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2022

Hello @Patrick Schneider

As mentioned by @Charlie Misonne the purpose of the Checkout/Pull/Push tasks is to exactly overcome authentication issues by using a proxy that would do the heavy lifting.

If you have a particular reason to use a direct git interaction, you need to use a script task.

We have a nice KB that explains how to use that alternative method.

Thank you,

 

Eduardo Alvarenga
Atlassian Support APAC 

1 vote
Answer accepted
Charlie Misonne
Community Champion
August 4, 2022

Hi Patrick,

If you want to use the direct GIT URL's you should use a script task instead of a source code checkout task. I don't think there is an option in the source code checkout task to bypass the proxy mechanis of Bamboo.

Something like this should work:

git clone <your-url>

Of course you need to take care of authentication parameters yourself by using encrypted variables or options like --depth 1 for a shallow clone.

If you keep the connection between build and only omit the source code checkout task you can still use the URL of the repository like this:

git clone ${bamboo.planRepository.repositoryUrl}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.2.4
TAGS
AUG Leaders

Atlassian Community Events