Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

젠킨스는 Java 로 만들어진 web application 이므로 구동하려면 Java servlet container 가 필요하며 war 패키지는 기본적으로 jetty 를 제공합니다.

사전 준비 사항

  • JDK 8 이상
  • Jenkins 2 now requires Servlet 3.1 to run. If you're not using the embedded Winstone-Jetty, make sure your container supports Servlet 3.1 (e.g. Tomcat 8) before upgrading.
  • Jenkins 2 no longer supports AJP with the embedded Winstone-Jetty container, so if you're using Jenkins with a reverse proxy, please make sure it uses HTTP before upgrading.

...


  1. .war 옆의 화살표를 클릭하면 OS별 패키지를 다운 가능
  2. 패키지보다는 직접 톰캣을 설치하고 war로 설치하는 것을 추천

...


톰캣 8 설치

  • https://tomcat.apache.org/download-80.cgi 다운로드
  • 압축 해제
  • conf/server.xml 수정. ServerPort, 

    Code Block
    <Server port="11005" shutdown="SHUTDOWN">
    
      <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
    
      <!-- Security listener. Documentation at /docs/config/listeners.html
    
      <Listener className="org.apache.catalina.security.SecurityListener" />
    Code Block
    <Connector port="11080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="11443" />
  • ㅁㅁ

...

  • AJP Port 주석 처리

    Code Block
    <!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->
    Warning

    Reverse Proxy 를 사용할 경우 다음 내용 추가

    Code Block
    proxyName="jira.lesstif.com" 
    proxyPort="443"
    
                       scheme="https" secure="true"
  • selinxu

    Code Block
    semanage port -a -p tcp -t http_port_t 10080

install

  • export JENKINS_HOME env var
  • download war
  • copy war to webapps/ROOT
  • start topcat
  • init password
    Image Added 
  • plugin install
    Image Added 
  • jenkins_home/secrets/initialAdminPassword  에 초기 암호 있음.


같이 보기

Ref