필요 조건

  • 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, 

    <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
    <Connector port="11080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="11443" />
    CODE
  • AJP Port 주석 처리

    <!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->
    CODE

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

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

    semanage port -a -p tcp -t http_port_t 10080
    CODE

install

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