Ubuntu18.04에 Jenkins 설치
1. 패키지 업데이트
$ sudo apt update
2. OpenJDK 설치
$ sudo apt install -y openjdk-8-jdk
3. Jenkins 설치
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
$ sudo apt update
$ sudo apt install jenkins
4. 동작 확인
$ sudo systemctl status jenkins
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: active (exited) since Sun 2020-06-28 23:42:06 JST; 4min 8s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4666)
CGroup: /system.slice/jenkins.service
6月 28 23:42:00 Redmine systemd[1]: Starting LSB: Start Jenkins at boot time...
6月 28 23:42:03 Redmine jenkins[2461]: Correct java version found
6月 28 23:42:03 Redmine jenkins[2461]: * Starting Jenkins Automation Server je
6月 28 23:42:03 Redmine su[2520]: Successful su for jenkins by root
6月 28 23:42:03 Redmine su[2520]: + ??? root:jenkins
6月 28 23:42:03 Redmine su[2520]: pam_unix(su:session): session opened for user
6月 28 23:42:06 Redmine jenkins[2461]: ...done.
6月 28 23:42:06 Redmine systemd[1]: Started LSB: Start Jenkins at boot time.s
5. 시동시 실행
$ sudo systemctl enable jenkins
jenkins.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable jenkins
6. 초기 설정
1. Jenkins에 액세스
http://<서버 IP>:8080/
2. Unlock Jenkins
$ sudo apt update
$ sudo apt install -y openjdk-8-jdk
3. Jenkins 설치
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
$ sudo apt update
$ sudo apt install jenkins
4. 동작 확인
$ sudo systemctl status jenkins
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: active (exited) since Sun 2020-06-28 23:42:06 JST; 4min 8s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4666)
CGroup: /system.slice/jenkins.service
6月 28 23:42:00 Redmine systemd[1]: Starting LSB: Start Jenkins at boot time...
6月 28 23:42:03 Redmine jenkins[2461]: Correct java version found
6月 28 23:42:03 Redmine jenkins[2461]: * Starting Jenkins Automation Server je
6月 28 23:42:03 Redmine su[2520]: Successful su for jenkins by root
6月 28 23:42:03 Redmine su[2520]: + ??? root:jenkins
6月 28 23:42:03 Redmine su[2520]: pam_unix(su:session): session opened for user
6月 28 23:42:06 Redmine jenkins[2461]: ...done.
6月 28 23:42:06 Redmine systemd[1]: Started LSB: Start Jenkins at boot time.s
5. 시동시 실행
$ sudo systemctl enable jenkins
jenkins.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable jenkins
6. 초기 설정
1. Jenkins에 액세스
http://<서버 IP>:8080/
2. Unlock Jenkins
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
$ sudo apt update
$ sudo apt install jenkins
$ sudo systemctl status jenkins
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: active (exited) since Sun 2020-06-28 23:42:06 JST; 4min 8s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4666)
CGroup: /system.slice/jenkins.service
6月 28 23:42:00 Redmine systemd[1]: Starting LSB: Start Jenkins at boot time...
6月 28 23:42:03 Redmine jenkins[2461]: Correct java version found
6月 28 23:42:03 Redmine jenkins[2461]: * Starting Jenkins Automation Server je
6月 28 23:42:03 Redmine su[2520]: Successful su for jenkins by root
6月 28 23:42:03 Redmine su[2520]: + ??? root:jenkins
6月 28 23:42:03 Redmine su[2520]: pam_unix(su:session): session opened for user
6月 28 23:42:06 Redmine jenkins[2461]: ...done.
6月 28 23:42:06 Redmine systemd[1]: Started LSB: Start Jenkins at boot time.s
5. 시동시 실행
$ sudo systemctl enable jenkins
jenkins.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable jenkins
6. 초기 설정
1. Jenkins에 액세스
http://<서버 IP>:8080/
2. Unlock Jenkins
$ sudo systemctl enable jenkins
jenkins.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable jenkins
1. Jenkins에 액세스
http://<서버 IP>:8080/
2. Unlock Jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
3. Customize Jenkins
특별히 아무것도 없으면 "Install suggested plugins"를 선택하십시오.
자동으로 설치가 시작됩니다.
4. Create First Admin User
화면의 지시에 따라 필요한 사항을 입력합니다.
5. Instance Configuration
여기에서는 액세스 할 jenkins의 URL을 지정하지만 특별히 아무것도 없으면 변경하지 않고 "Save and Finish"를 클릭하십시오.
참고
Installing Jenkins
Reference
이 문제에 관하여(Ubuntu18.04에 Jenkins 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/y-shin/items/6a8de502f489689dc3c6
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(Ubuntu18.04에 Jenkins 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/y-shin/items/6a8de502f489689dc3c6텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)