Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bamboo git checkout works too long

Tags:

git

bamboo

I have some trouble with git checkout tools in Bamboo. It works too long. For example I have two repos. I can clone them to local machine in 5-10 minutes. But checkout task stucks at

Fetching 'refs/heads/release-1.69' from 'ssh://git@ [path/to/first/repo] .git'.

Git: remote: Counting objects

Git: remote: Compressing objects (120)

Git: Receiving objects (269)

Git: Resolving deltas (83)

Git: Updating references (1)

Git: Total 269 (delta 83), reused 128 (delta 31)

Checking out revision 7c11b20b2495be8bb8091839794c4e80bdc7651e.

Creating local git repository in 'path'

Sometimes this task take 150 minutes, sometimes it even has no end.

Another trouble that stopping plan with that task not stopping the agent. The only way to reanimate agent is restart it.

Is it something wrong with agent? Or I make mistake with configuring repos? I found this question. The only advise is to re-install Bamboo.

like image 363
hatesms Avatar asked Sep 09 '13 14:09

hatesms


2 Answers

Since a script works well, you could:

  • use the script as a first step
  • then use the Bamboo Checkout task on the same directory: unless "Force CLean Build" is checked, it should see the repo is already checked-out.

That would mean that:

  • the Bamboo checkout step would be considerably quicker (nothing to checkout),
  • the integration with Jira wouldn't be compromised.
like image 57
VonC Avatar answered Oct 01 '22 23:10

VonC


Not sure if that helps, but we had the same problem with TeamCity. Periodically it was hanging on getting an update from a git repository when we used its own VCS connector. We have resolved it by writing script and calling it on first step.

like image 37
Alexey Andrushkevich Avatar answered Oct 02 '22 00:10

Alexey Andrushkevich