본문 바로가기

프로젝트 자동화

[프로젝트 자동화] 설치 및 운용 가이드(CruiseControl.net )

 

1. 관련 프로그램 설치

 - IIS 설치 (windows 7 기준)

1). 제어판의 프로그램 및 기능 선택 -> windows 기능 사용/사용 안함 선택.

2)World Wide Web 서비스를 모두 선택하여 설치하면 IIS 7 설치가 완료된다.

-       CruiseControl 설치

n  지속적인 업데이트로 설치가 간편해졌다.

n  

n  

n  

n  

-       CruiseControl.Net 서비스 시작

n  관리도구의 서비스를 선택한 후 서비스 리스트에서 CruiseConrtol.Net을 선택한다.

n  

-       웹 페이지 접속

n  127.0.0.1/ccnet 에 접속 ( iis 설정이 완료 되어 있어야 한다. )

n  

-       CCTray 설치

n  

n  

 

4. CCNet.Config 작성.

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">

<project name="MY_PROJECT_01">

    <triggers>

      <scheduleTrigger time="23:10" buildCondition="ForceBuild" name="Scheduled"/>

    </triggers>

    <tasks>

      <devenv>

        <solutionfile>D:\MyProject\Server\trunk\My_vs2010.sln</solutionfile>

        <configuration>Release</configuration>

        <buildtype>ReDebug</buildtype>

        <executable>C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com</executable>

        <buildTimeoutSeconds>120</buildTimeoutSeconds>       

      </devenv>

      <buildpublisher>

      </buildpublisher>

    </tasks>

    <labeller type="dateLabeller" />

    <publishers>

    <statistics />

    <xmllogger />

    <email from="내이멜@gmail.com" mailhost="smtp.gmail.com" mailport="587" useSSL="TRUE" mailhostUsername="보내는놈@gmail.com" includeDetails="TRUE" mailhostPassword="비번" >

        <users>

            <user name="나" group="buildmaster" address="내이멜@이멜" />

        </users>

        <groups>

            <group name="buildmaster">

              <notifications>

                <notificationType>Always</notificationType>                  

                <!--<notificationType>Failed</notificationType>-->

              </notifications>

            </group>

        </groups>

    </email>

    </publishers>

  </project>

</cruisecontrol>

 

-       webURL : 결과를 통보 받을 장소.

-       trurnkUrl : svn내의 프로젝트 위치.

-       workingDirectory : 프로젝트 위치 폴더.

-       Triggers : 주기적으로 프로젝트를 실행한다.

-       Solutionfile : 솔루션의 위치 (workingDirectory와 일치해야 함.)

-       Configuration : 빌드 정보

-       ScheduleTrigger time : 빌드 시간 예약

-       Email : 빌드 결과를 메일을 통해서 전달 받음.

n  Gmail 사용.

5. CCTray 활용

 

-       

 - 파일의 설정을 클릭

 - Add 클릭

 - 선택

 - 작성된 ccnet.config 파일에서 프로젝트를 가져온다.

 

 - 추가 후의 모습

 - 완료된 모습으로 정상적으로 ccnet.config 파일을 작성하였다면, 녹색으로 표시가 되며, 잘 못 작성하였을 경우는 붉은색으로 표시된다. 연결이 끊어진 경우는 회색으로 표시된다.

6. 마침

 빌드 후 모습