๋ชฉ์ฐจ

JenKins ์ค์น๊ณผ์
๋ด ๊ฒฝ์ฐ๋ jdk๊ฐ ์ด๋ฏธ ์ค์น๋์ด ์์๊ธฐ์ ๊ทธ ๋ถ๋ถ์ ์๋ตํ๋ค.
#๊ณต๊ฐํค ๊ฐ์ ธ์จ๋ค.
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
#์ ์ฅ์ ํ์ผ ์ค์น
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
#jenkins ์ค์น
sudo yum install -y jenkins
#์๋น์ค ๋ฐ๋ชฌ ๋ฆฌ๋ก๋
sudo systemctl daemon-reload
#jenkins ์๋น์ค ์์
sudo systemctl start jenkins
#์๋น์ค์ jenkins ๋ฑ๋ก(์๋ฒ ๋ถํ
์ ์๋ jenkins ์์)
sudo systemctl enable jenkins
#jenkins ์๋น์ค ์ํ ์กฐํ
sudo systemctl status jenkins
TroubleShooting

journalctl -xe๋ก ๋ด๋ ์ ๋ชจ๋ฅด๊ฒ ์ด์ ๊ตฌ๊ธ๋ง ํด์ ํด๊ฒฐํ๋ค.
๋คํํ ๋ด ๊ฒฝ์ฐ๋ jenkins์ JAVA_HOME์ ๋ฐ๋ก ์ก์์คฌ๋๋ ํด๊ฒฐ๋์๋ค.
jenkinis๊ฐ java๊ธฐ๋ฐ์ผ๋ก ๊ธฐ๋๋๋๊น JAVA PATH๊ฐ ๋ง์ง ์์ผ๋ฉด ์๋ฌ๊ฐ ๋๋ ๋ฏ ํ๋ค.
#jenkins ์ค์ ํ์ผ ์ด๊ธฐ
sudo vi /usr/lib/systemd/system/jenkins.service
์๋ ์ฌ์ง์ 52๋ฒ ์งธ line์ Enviroment="JAVA_HOME"์ ์ ๋๋ก ์ก์์คฌ๋ค.

๋ tomcat์ด ์ค์น๋์ด ์๋ ๊ฒฝ์ฐ 8080ํฌํธ๊ฐ ์ค๋ณต๋๊ธฐ์ jenkins์ ํฌํธ๋ฅผ ๋ณ๊ฒฝํ๋ ค๋ฉด ์ ์ค์ทํ์ผ์ธ
jenkins.service์ ์๋๋ถ๋ถ์ ํฌํธ๋ฅผ ์์ ํ๋ฉด ๋๋ค.

๊ทธ ํ ๋ค์ jenkins ์๋น์ค๋ฅผ ์์ ํ ์ํ๋ฅผ ๋ณด๋ฉด ์๋์ฒ๋ผ 8081 ํฌํธ๋ก ์ ์์ ์ผ๋ก running์ด ๋ ๊ฑธ ๋ณผ ์ ์์๋ค.

jenkins ์ต์ด์คํ ์ root ์์ ๋น๋ฐ๋ฒํธ๊ฐ ์ค์ท์ฒ๋ผ ๋ก๊ทธ์ ํ์ถ๋๋๋ฐ ์ด๋ฅผ ์ด์ฉํด์ ๋ธ๋ผ์ฐ์ ์์ ๋ก๊ทธ์ธ ํ๋ค.

๊ทธ ํ ํ๋ฌ๊ทธ์ธ์ ๊ถ์ฅ ํ๋ฌ๊ทธ์ธ์ผ๋ก ์ค์นํ๋ค.(์ด๊ฑด ๊ฐ์ธ ์ทจํฅ์ด๋ค.)


๊ทธ ํ ๊ด๋ฆฌ์ ๊ณ์ ์ ์์ฑํ๋ค.

๊ทธ๋ฌ๋ฉด ์ ์ url์ด ํ์ถ๋๊ณ ์ด ์ฃผ์๋ก ์ ์ํ๋ฉด ๋๋ค.

Start using JenKins๋ฅผ ๋๋ฅธ๋ค.

๊ทธ ํ ๋ก๊ทธ์ธ ํ๋ฉด์ด ํ์ถ๋๊ณ ์์ฑํ ๊ด๋ฆฌ์ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธ ํ๋ค.


reference: https://www.jenkins.io/doc/book/installing/linux/#red-hat-centos
Linux
Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software
www.jenkins.io
๊ฐ์ธ ์คํฐ๋ ๊ธฐ๋ก์ ๋ฉ๋ชจํ๋ ๊ณต๊ฐ์ด๋ผ ํ๋ฆฐ์ ์ด ์์ ์ ์์ต๋๋ค.
ํ๋ฆฐ ์ ์์ ๊ฒฝ์ฐ ๋๊ธ ๋ถํ๋๋ฆฝ๋๋ค.
[DevOps] CentOS 8 GitLab ์ค์น
๋ชฉ์ฐจGitLab ์ค์น๊ณผ์ #GitLab์ CentOS์ฉ RPM ์ ์ฅ์ ์ค์นํ๊ธฐ ์ํ ์คํฌ๋ฆฝํธ ๋ค์ด๋ก๋ ๋ฐ ์คํcurl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash#gitlab ์ปค๋ฎค๋ํฐ๋ฒ์ ์ค์นsudo yum
yaga.tistory.com
[DevOps] CentOS7 ์ค์น๋ถํฐ jdk, mysql, tomcat ์ฐ๋๊น์ง ๊ณผ์
๋ชฉ์ฐจCentOS7 ์ค์น๋ถํฐ jdk, mysql, tomcat ์ค์น ๋ฐ ๊ฐ๋จํ ์ฐ๋๊ณผ์ ์ ๊ฐ๋ตํ ํฌ์คํ ํ๋ค.CentOS ๋ฏธ๋ฌ ์ฌ์ดํธ์์ isovํ์ผ ๋ค์ด๋ก๋ํ๋ค.(์ฌ๊ธฐ์ GUIํ๊ฒฝ์ผ๋ก ์ค์นํ๊ธฐ ์ํด DVD ์ ํ)CentOS7 ์ค์น๋ฆฌ๋ ์ค ๋ถ
yaga.tistory.com
'IT > DevOps' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [DevOps] CentOS 8 Jenkins CI, CD ํ๊ฒฝ ๊ตฌ์ถ(feat. eGovCI) (61) | 2024.05.03 |
|---|---|
| [DevOps] CentOS 8 GitLab ์ค์น (35) | 2024.05.01 |
| [DevOps] CentOS7 ์ค์น๋ถํฐ jdk, mysql, tomcat ์ฐ๋๊น์ง ๊ณผ์ (55) | 2024.04.25 |
| [linux] linux jboss eap 7.4 install, setting/ deploy (22) | 2023.12.30 |
| [WAS] jboss eap 7.4 ssl ์ ์ฉ (feat. openssl) (22) | 2023.12.30 |
๋๊ธ