๐Ÿค ์€์ง€log ๐Ÿค

[CI/CD study] - 7-2. Jenkins์™€ Gitea ์—ฐ๋™ํ•˜๊ธฐ ๋ณธ๋ฌธ

๐Ÿ’š DevOps

[CI/CD study] - 7-2. Jenkins์™€ Gitea ์—ฐ๋™ํ•˜๊ธฐ

Eun_zii 2022. 10. 11. 14:33
 

[CI/CD study] - 7-1. Jenkins์™€ Gitea ์—ฐ๋™ํ•˜๊ธฐ

[CI/CD study] - 6. Docker ์— Jenkins ์„ค์น˜ํ•˜๊ธฐ [CI/CD study] - 5. Docker ์„ค์น˜ [CI/CD study] - 4. EC2 ์ธ์Šคํ„ด์Šค Image ๋งŒ๋“ค๊ธฐ [CI/CD study] - 3. AWS EC2 ์ธ์Šคํ„ด์Šค JAVA์„ค์น˜ [CI/CD study] - 2. SSH Client T..

eun-jii.tistory.com

 

 

 

 

 

Jenkins ๋Œ€์‹œ๋ณด๋“œ์—์„œ Jenkins ๊ด€๋ฆฌ ํด๋ฆญ

 

 

ํ”Œ๋Ÿฌ๊ทธ์ธ ๊ด€๋ฆฌ โžก ์„ค์น˜ ๊ฐ€๋Šฅ โžก ๊ฒ€์ƒ‰

 

ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ ํ•ด์ฃผ๊ธฐ + Gitea Plugin ๋„ ๊ฐ™์ด ๋ฐ›์•„์ฃผ๊ธฐ ( ์•ˆ๋ฐ›์œผ์‹  ๋ถ„๋“ค )

 

 

๋‹ค์‹œ Jenkins ๊ด€๋ฆฌ โžก ์‹œ์Šคํ…œ ์„ค์ • ์—์„œ ์Šคํฌ๋กค ๋‚ด๋ฆฌ๋‹ค๋ณด๋ฉด 

 

 

Gitea Server ์„ค์ • 

* Name, URL , Manage hooks ์ฒดํฌ ํ›„ Credentials ์ ์šฉ (์—†์œผ๋ฉด + Add ํด๋ฆญ)

 

 

Server URL ์ž‘์„ฑํ›„ ๋ฐ‘์— Gitea Version ์ด ๋– ์•ผ ์ •์ƒ์ ์œผ๋กœ ์—ฐ๋™ ๋œ๊ฒƒ์ž„

 

 

Credentials ๊นƒํ‹ฐ์šฉ์œผ๋กœ ๋งŒ๋“ค๊ธฐ

* Kind ์—์„œ Gitea Personal Access Token ํด๋ฆญํ›„ 

๋ณธ์ธ ๊นƒํ‹ฐ โžก ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ์— ์‚ฌ์ง„๋ถ€๋ถ„ ํด๋ฆญ โžก ์„ค์ • โžก ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ โžก ํ† ํฐ ๋งŒ๋“ค๊ธฐ

 

Credentials ๊นŒ์ง€ ์ ์šฉํ›„ ์™ผ์ชฝ ํ•˜๋‹จ ์ €์žฅ ํด๋ฆญ

 

 

Jenkins ๋Œ€์‹œ๋ณด๋“œ ์—์„œ " ์ƒˆ๋กœ์šด Item "

 

 

item name ์ž‘์„ฑํ›„ " Multibranch Pipeline " ์„ ํƒํ›„ OK

 

 

name ๊ณผ ์„ค๋ช… ์ž‘์„ฑ

 

 

Branch Sources ์— Gitea ์„ ํƒํ›„ ์ •๋ณด ์ž…๋ ฅํ•ด์ฃผ๊ธฐ

* Gitea ๊ฐ€ ๋œจ์ง€ ์•Š๋Š”๋‹ค๋ฉด gitea plugin ์„ค์น˜ ํ•ด์•ผํ•จ

 

gitea server ์—ฐ๊ฒฐ โžก Credentials ์„ ํƒ โžก Owner ๋“ฑ๋กํ•˜๋ฉด ํ•˜๋‹จ์— ๋ ˆํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ์ž๋™์œผ๋กœ ๋“ฑ๋ก๋จ

์™ผ์ชฝ ํ•˜๋‹จ์— Save ํด๋ฆญ

 

์—ฐ๋™ ์™„๋ฃŒ

 

Jenkins-file ์„ค์น˜ํ•˜๋Ÿฌ.. ์ถ์ถ.. .๐Ÿงš‍โ™€๏ธ

728x90