Forums

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

Clonning bitbucket repo in jenkins job fails sometimes

daviti_kenkadze
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 12, 2024

 

Clonning repository in jenkins job has problem.

hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- git@bitbucket.org:companyname/sis-deployment-scripts.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: [2024-07-12T16:18:58.323Z] stdout: [2024-07-12T16:18:58.323Z] stderr: Connection closed by 185.166.142.21 port 22 [2024-07-12T16:18:58.323Z] fatal: Could not read from remote repository.

Clonning sometimes works, sometimes doesn't. Your server has problem.

I've added this below with port 443 and without in ~/.ssh/config.

Host bitbucket.org

HostName bitbucket.org Identity

File ~/.ssh/id_rsa

 

Also, changed git@bitbucket.org:companyname/deployment-script-configs.git to ssh://git@altssh.bitbucket.org:443/companyname/deployment-script-configs/.

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 15, 2024

G'day, @daviti_kenkadze 

Welcome to the community!

Can you raise a support ticket with us on our Support portal so we can troubleshoot the issue further?

Thanks!
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events