나는 처음으로 Hudson + Git 프로젝트 (이전에는 Hudson + SVN에서 많은 작업을 수행)를 설정하고 있습니다. 저장소가 상당히 크기 때문에 클론 단계가 느릴 것으로 예상했지만 후속 + 병합이 사용되는 후속 빌드도 마찬가지입니다. 다음과 같은 옵션을 사용할 수 있습니다 :Hudson + Windows + GitHub + Git Plugin = 정말 느린 가져 오기 단계
- 병합 이전에 체크 아웃
후
... Fetching changes from the remote Git repository Fetching upstream changes from [email protected]:username/ProjectFoo.git [Foo] $ git fetch -t [email protected]:username/ProjectFoo.git +refs/heads/*:refs/remotes/origin/*
이 시점에서 매우 오랫동안 작동하지 않습니다. 마침내 완료되면, 예상대로 진행 나타납니다 : 나는 힘내 Bash는 명령 행에서 같은 fetch
명령을 실행하면 거의 즉시 실행
[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 ...
.
어떤 일이 벌어 질지 궁금하십니까? 또는 물건을 빠르게하는 암시? 복제 된 저장소는 210MB입니다. (약 10 년 동안의 코드 히스토리)
Brilliant! 솔루션을 게시 해 주셔서 감사합니다! – metasim
당신의 생각 과정은 단순히 훌륭합니다. – Niranjan
우리는 두 개의 다른 Jenkins 서버에서이 문제를 해결했습니다. 고마워요! – fschmitt