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

2024. 3. 15. 10:32·Infra/Jenkins

⚠️ 에러 상황

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
'Infra/Jenkins' 카테고리의 다른 글
  • [Jenkins]Docker로 설치한 Jenkins 버전 업데이트
iihye_
iihye_
  • iihye_
    hye-log
    iihye_
    • 분류 전체보기 (296)
      • Development (19)
        • Spring (4)
        • Python (5)
        • React (4)
        • Next.js (1)
        • JavaScript (4)
        • CSS (1)
      • Infra (15)
        • Docker (1)
        • Jenkins (2)
        • Nginx (3)
        • JBoss (1)
        • Windows (3)
        • Linux (3)
        • Kafka (2)
      • Database (1)
        • MongoDB (1)
      • Tools (2)
        • Git (0)
        • Github (1)
        • Document (1)
      • CodingTest (125)
        • Programmers (38)
        • Baekjoon (52)
        • SWEA (27)
        • Jungol (4)
        • Codetree (1)
        • Goorm (3)
      • Education (99)
        • SSAFY 10기 (5)
        • AI Tech 4기 (94)
      • NomadCoder (35)
        • (JS)크롬 앱 만들기 (35)
      • Notice (0)
  • 링크

    • Github
  • 인기 글

  • 최근 글

  • 전체
    오늘
    어제
  • hELLO· Designed By정상우.v4.10.5
iihye_
[Jenkins]hudson.plugins.git.GitException: Command "git config remote.origin.url" returned status code 128 오류
상단으로

티스토리툴바