Back-End/Issues

[Jenkins] git과 연동 오류

yeonx 2023. 8. 10. 15:11
728x90

에러 발생

Failed to connect to repository : Command "git.exe ls-remote -h -- https://github.com/BootCampFire/Back-end.git HEAD" returned status code 128:
stdout:
stderr: fatal: Cannot prompt because user interactivity has been disabled.
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/BootCampFire/Back-end.git/'

 

해결

1.Jenkins 관리 -> System

2. Git 설정

원래 Secret text로 설정했음 -> Username with password로 변경

username : 내 깃 아이디
password : token
ID : 내가 쓰고 싶은거