[TIL] 20240618 - CI 파이프라인 구축 실습

jini·2024년 6월 18일
0

TIL

목록 보기
30/48

🧊 GitHub 접근용 SSH Key 생성

GitHub의 private repo에 접근할 때는 주로 SSH 프로토콜을 이용

ssh-keygen을 이용해서 public-private keypair를 생성

  1. GitHub 로그인
  2. (Account) Setings > SSH and GPG keys
  3. New SSH Key
  4. public key 등록



🧊 Local Repository 생성

GitHub에 등록한 키로 SSH 프로토콜로 GitHub에 접속 가능한지 확인

ssh -T git@github.com

git clone 명령으로 리모트 repogitory 복제

git clone git@github.com:<github id>/<repository>.git



🧊 Spring Boot 프로젝트 생성

설정 후 Generate 버튼을 눌러 zip 파일 다운로드


로컬 컴퓨터에 JDK 설치

spring initializr 에서 받은 파일의 압축을 풀고 ./gradlew build



🧊 Jenkins 설정

Manage Jenkins → plugins → Pipeline: State View Plugin 설치


Manage Jenkins → Credentials → Update credentials


Manage Jenkins → Tools → JDK Installazations



🧊 Jenkins 프로젝트 (아이템) 생성, 설정

0개의 댓글