hye-log

[Jenkins]hudson.plugins.git.GitException: Command "git config remote.origin.url" returned status code 128 오류 본문

Infra/Jenkins

[Jenkins]hudson.plugins.git.GitException: Command "git config remote.origin.url" returned status code 128 오류

iihye_ 2024. 3. 15. 10:32

⚠️ 에러 상황

Docker로 실행한 Jenkins에서 git directory를 찾을 수 없다는 Exception이 발생했다.

초반에 Jenkins를 실행했을 때에는 잘 실행되다가...

파이프라인도 삭제해보고 credential도 수정해보았지만 안되었다!

 

 

✅ 해결 방법

docker mount 된 폴더에 들어가면 /caches 폴더가 있는데

이 폴더에 있는 기존의 .git 파일을 삭제해주었다.

다시 pipeline 실행하니 정상 작동하였다.

 

 

📋 참고자료

https://stackoverflow.com/questions/31129417/jenkins-not-able-to-fetch-code-from-remote-git

728x90

'Infra > Jenkins' 카테고리의 다른 글

[Jenkins]Docker로 설치한 Jenkins 버전 업데이트  (0) 2024.03.15
Comments