IT 개발노트

linux : jenkins 설치 본문

기초튼튼

linux : jenkins 설치

limsungju 2019. 9. 27. 10:35

설정하는 방법

/usr/local/itcen/tomcat8/conf/tomcat-users.xml 수정

<role rolename="manager"/>
  <role rolename="manager-gui" />
  <role rolename="manager-script" />
  <role rolename="manager-jmx" />
  <role rolename="manager-status" />
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager,manager-gui, manager-script, manager-jmx, manager-status"/>

 

/usr/local/itcen/tomcat/webapps/manager/META-INF/context.xml 수정

<Context antiResourceLocking="false" privileged="true" docBase="${catalina.home}/webapps/manager">
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="^.*$" />
</Context> 

https://jenkins.io/download/ -> 링크복사

pwd -> # wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war

# mv jenkins.war /usr/local/itcen/tomcat/webapps/

# cd .jenkins

# cd secrets

# cat initialAdminPassword 값을 넣기