Hudson + Windows + GitHub + Git Plugin = really really slow sampling phase

I am setting up my first Hudson + Git project (previously done by many with Hudson + SVN). I expected the clone stage to be slow, as our repository is large enough, but subsequent builds that use merge + merge take as long. The following options are included:

  • Merge before assembly
  • Clear after placing an order

I do not perform "Wipe the workspace".

...
Fetching changes from the remote Git repository
Fetching upstream changes from git@github.com : username / ProjectFoo.git
[Foo] $ git fetch -t git@github.com : username / ProjectFoo.git + refs / heads / *: refs / remotes / origin / *

At this moment, it boils for a very long time. Once it is finally completed, it is expected to progress:

[Foo] $ git ls-tree HEAD
[Foo] $ git rev-parse origin / mybranch
Commencing build of revision c883d59dd5a506a0b586f679a256f539712bfccc (origin / mybranch)
Gitapi created
Checking out Revision c883d59dd5a506a0b586f679a256f539712bfccc (origin / mybranch)
[Foo] $ git checkout -f c883d59dd5a506a0b586f679a256f539712bfccc
[Foo] $ git tag -a -f -m "Hudson Build # 2" hudson-Foo-2
Recording changes in branch origin / mybranch
[Foo] $ git whatchanged --no-abbrev -M --pretty = raw c883d59dd5a506a0b586f679a256f539712bfccc..c883d59dd5a506a0b586f679a256f539712bfccc
Cleaning workspace
[Foo] $ git clean -fdx
...

When I run the same command fetchfrom the Git Bash command line, it runs almost instantly.

, ? ? : 210 . ( .)

+3
3

. , - , , - , . msys-1.0.dll - netapi32.dll, . plink.exe PuTTY GIT_SSH env, . .

+8

. , Jenkins/Hudson Windows, .
, git rsa Windows! :

  • - > - > "".
  • , Properties- > Log On, Jenkins Log On .
  • Jenkins, "git fetch" , linux.

, ccutrer, , plink rsa pageant ( !). , openssh plink .

+2

?

$ git config remote.origin.url git://github.com/username/ProjectFoo.git   # read-only
$ git config remote.origin.pushurl git@github.com:username/ProjectFoo.git # authenticated

, ?

. " Github MsysGit".

+1
source

Source: https://habr.com/ru/post/1758457/


All Articles