젠킨스
Download and run Jenkins
httpPort 는 설정 할 수 있음 8081,8082... 등
Open up a terminal in the download directory.
Run
java -jar jenkins.war --httpPort=8080
.Browse to
http://localhost:8080
.Follow the instructions to complete the installation.
Admin 비밀번호 입력, 읽어보면 다 가능
플러그인 디폴트 설치
Maven 프로젝트 구성
Jenkins 관리 -> Plugin 관리 -> Maven Integration 설치(관련 내용 패키징 설치)
Jenkins 관리 -> Global tool configuration -> Maven -> Maven 경로 설정 or 환경변수 설정 (system상)
maven 설치
http://maven.apache.org/download.cgi 다운 및 scp 전송 -> 아래 내용으로 압축해
http://maven.apache.org/download.cgi 버전확인 후 wget으로 다운
대시보드 -> new item -> Maven 프로젝트
github 설정시 -> 서버에 git 설치 필요
Github ssh key
Username and Password -> github 로그인 정보인증 (보안 염려)
ssh key 인증
서버 key 생성
파일명.pub 공개키 정보(jenkins-github-key.pub) -> 복사 -> jenkins 인증 -> primary key 붙여넣기
Github -> Settings -> Deploy key -> .pub 키 복붙
Github WebHook
jenkins 빌드유발 내용 중 깃허브 변경사항 발생 시 조치하는 방법
jenkins 빌드유발부분 -> GitHub hook trigger for GITScm polling 체크
github settings -> webhooks ->Payload URL :
Jenkins 주소/github-webhook/ 입력후 추가
빌드 후 조치
자동배포
Last updated
Was this helpful?