Back-End/Study

[Jenkins] Github연동

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

1.Jenkins 관리 -> System

2. Github 설정 -> Secret text

3. 하단에 Add 클릭 -> test

4. 새로운 Item

5. 원하는 프로젝트 명과 Freestyle project 클릭

6. 프로젝트 url입력

7. git주소 입력 -> 에러발생..

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/'

 

해결 : 

https://yeonx.tistory.com/entry/Jenkins-git%EA%B3%BC-%EC%97%B0%EB%8F%99-%EC%98%A4%EB%A5%98

 

8. 해결 후 Credentials 선택

9. 브랜치 설정

10. 빌드 클릭 -> 성공!

'Back-End > Study' 카테고리의 다른 글

[Linux] 리눅스 필수 명령어 정리  (0) 2023.09.25
[Jenkins] GitLab연동  (0) 2023.08.11
[Jenkins] 설치 및 설정  (0) 2023.08.10
Spring IoC(제어의 역전) / DI(의존성 주입)  (0) 2022.11.24
Spring과 Spring Boot  (0) 2022.11.24