-
[jenkins] git API key로 crendential 추가CS/git 2022. 7. 5. 14:39
1. github 전체 설정 (Settings) > Developer Settings > 권한 선택 > token 발급
2. Jenkins global option에서 Secret Text로 credential 추가 (Secret : token ID : github ID)
3. connect to API 하면 완료!
생각보다 간단..
이 아니었음. global과 job 설정 credential이 다르니까 안되는데 ;; 그 이유를 찾아보고 싶다. --> 이문제가 아니라
ERROR: Error fetching remote repo 'origin'
이문제였는데 새로 빌드 파서 작업공간 초기화하니 실행되었음. 뭔가 꼬인거 같음. 아래 참조하여 해결
https://lookingfor.tistory.com/entry/Jenkins-Error-fetching-remote-repo-origin
global에는 github token으로, job 설정에는 github id/pwd
Reference
'CS > git' 카테고리의 다른 글
git pull remote branch (0) 2023.04.17 git clone 특정 branch (0) 2022.12.18 M1 chip github 설치 (0) 2022.12.18 디렉토리 변경할때마다 git 초기화 필요 (0) 2022.07.07 Git 새로운 remote repository 추가 (0) 2022.06.27