๋กœ์ผ“๐Ÿพ
article thumbnail

ํ…Œ์ŠคํŠธ ์„œ๋ฒ„ ๋‚ด ์  ํ‚จ์Šค ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

 

์„œ๋ฒ„๋Š” CentOS7 ๊ธฐ์ค€์ž…๋‹ˆ๋‹ค.

 

[STEP1] ์  ํ‚จ์Šค๊ฐ€ ์„ค์น˜๋˜์–ด์žˆ๋Š” ํ™•์ธํ•˜๊ธฐ

 

$ yum list installed | grep jenkins


[STEP2] ์  ํ‚จ์Šค ์„ค์น˜ํ•˜๊ธฐ

[STEP2-1] url์— ํ•ด๋‹นํ•˜๋Š” ํŒŒ์ผ์„ /etc/yum.repos.d/jenkins.repo ๊ฒฝ๋กœ์— ๋‹ค์šด

$ wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo


[STEP2-2] key import 

$ rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key


[STEP2-3] ์  ํ‚จ์Šค ์„ค์น˜

$ yum install jenkins


[STEP3] ์  ํ‚จ์Šค ์„ค์ •ํ•˜๊ธฐ

$ vi /etc/sysconfig/jenkins


๊ธฐ๋ณธ ํฌํŠธ๊ฐ€ 8080์œผ๋กœ ๋˜์–ด์žˆ๋Š” ๋ฐ ํฌํŠธ ์ถฉ๋Œ ์•ˆ๋‚˜๊ฒŒ ๋ฐ”๊ฟ”์ฃผ๊ธฐ

 

์ €๋Š” 9100 ํฌํŠธ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.




[FINAL STEP] ์  ํ‚จ์Šค ์„œ๋น„์Šค ์‹œ์ž‘ํ•˜๊ธฐ


์  ํ‚จ์Šค ์‹œ์ž‘

$ service jenkins start

 

์  ํ‚จ์Šค ์ค‘์ง€

$ service jenkins stop

 

์  ํ‚จ์Šค ์žฌ์‹œ์ž‘

$ service jenkins restart

 

์ดํ›„ http://์„œ๋ฒ„ip:9100 ๋กœ ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ์•„๋ž˜์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ๋‚˜์˜ค๋ฉด ์„ฑ๊ณต์ ์œผ๋กœ ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

 

 

 

 

 

[Jenkins] ์  ํ‚จ์Šค + SVN+ ๋ฉ”์ด๋ธ+์Šคํ”„๋ง์„ ์ด์šฉํ•˜์—ฌ ๋นŒ๋“œ์—…๊ณผ ์ž๋™๋ฐฐํฌ ํ•˜๊ธฐ

๋กœ์ปฌ ์„œ๋ฒ„๊ฐ€ ์•„๋‹Œ ํ…Œ์ŠคํŠธ ์„œ๋ฒ„์—์„œ ์  ํ‚จ์Šค๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„๋Š” CentOS7 ๊ธฐ์ค€์ž…๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ˆœ์„œ๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. KTCloud๋ฅผ ์ด์šฉํ•˜์—ฌ ์„œ๋ฒ„ ๊ตฌ์ถ•(์ƒ๋žต) ํ…Œ์ŠคํŠธ ์„œ๋ฒ„ ๋‚ด ํ†ฐ์บฃ(p

kingofbackend.tistory.com

 

profile on loading

Loading...