Ubuntu 18.04
Java 8
Jenkins 2.346.2
java 8 or 11 version 설치
sudo apt-get install openjdk-8-jre-headless
JAVA_HOME 맞게 설정되어 있는지 확인
echo $JAVA_HOME
jenkins key 다운로드
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
jenkins install
sudo apt-get install jenkins
service port 변경
sudo vi /etc/default/jenkins
HTTP_PORT=58080
또는, 안되면 sudo vi /lib/systemd/system/jenkins.service
에서
[Service]
Environment="JENKINS_PORT=58080"
을 변경, sudo systemctl daemon-reload
sudo systemctl restart jenkins
/var/lib/jenkins/secrets/initialAdminPassword
)