2014년 4월 5일 토요일

[jenkins] github의 일부 project만 빌드


0. 환경

macbook-pro 13” 2012 mid / 10GB
parallels9 ubuntu 12.04 LTS
tomcat7, jenkins, maven project


jenkins와 연동된 github 중 일부 프로젝트만 빌드해야 할 때

요약

pom.xml빌드 결과물의 위치를 신경쓰자


1. github 상황

아래 github에 Crawler project 폴더와 wildgoose project 폴더가 있다.
github

그리고 wildgoose project만 jenkins의 job으로 선택하고자 한다.

아래의 사진은 wildgoose 폴더의 내부이고 maven project로 생성되었다.
wildgoose project


2. job 설정

pom.xml 위치 지정

아래 그림처럼 jenkins의 job(item)을 Build a maven2/3 project 로 생성하면
jenkins maven project

이때 jeckins에게 pom.xml의 위치를 알려줘야 하는데
github의 상위 directory를 기준으로 pom.xml이 있는 상대위치를 적어주면 된다.
pom.xml location


3. 결과물 위치

일반적으로 (ubuntu 기준) 결과물은 [user home directory]/.jenkins/workspace/[job name] 이하 에 위치하며 project의 위치에 따라 약간씩 달라질 수 있다.

빌드 결과

job의 빌드를 실행 후 결과를 보면 결과물이 어디에 위치했는지를 알 수 있다.


Written with Dec7.

댓글 1개:

  1. Harrah's Lake Tahoe - MapyRO
    Located in Stateline, 남원 출장마사지 Harrah's Lake Tahoe is 보령 출장샵 within a 보령 출장마사지 15-minute walk of popular attractions like the LINQ Promenade and Heavenly Ski Resort. Rating: 8.1/10 · ‎9 votes · ‎Price range: 김천 출장마사지 $49 per night (Latest starting price for this hotel)What kind of shops are available at Harrah's Lake Tahoe?Does Harrah's Lake Tahoe offer free cancellation 오즈포탈 for a full refund?

    답글삭제