Jenkins - ruthetum/study GitHub Wiki

  • Continuous Integration Tools์˜ ์ผ์ข…
  • ๋ฌด๋ฃŒ ์˜คํ”ˆ์†Œ์Šค ์ž๋™ํ™” ์„œ๋ฒ„
  • ๋นŒ๋“œ, ๋ฐฐํฌ ์ž๋™ํ™”๋ฅผ ์ง€์›ํ•˜๋Š” ์ˆ˜๋ฐฑ๊ฐœ์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ ์ œ๊ณต
    • ๋นŒ๋“œ: ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ์ƒํƒœ๋กœ ๋งŒ๋“œ๋Š” ์ผ
    • ๋ฐฐํฌ: ์‚ฌ์šฉ์ž ์ ‘๊ทผ์ด ๊ฐ€๋Šฅํ•˜๋„๋ก ๋ฐฐ์น˜์‹œํ‚ค๋Š” ์ผ

๊ธฐ๋Šฅ

  • ๋นŒ๋“œ ์ž๋™ํ™”
  • ํ…Œ์ŠคํŠธ ์ž๋™ํ™”
  • ์ฝ”๋“œ ํ‘œ์ค€ ์ค€์ˆ˜ ์—ฌ๋ถ€ ๊ฒ€์‚ฌ (์ •์  ์ฝ”๋“œ ๋ถ„์„)
  • Build Pipeline ๊ตฌ์„ฑ :ํ”„๋กœ์ ํŠธ์— 2๊ฐœ ์ด์ƒ ๋ชจ๋“ˆ์ด ์žˆ์„ ๊ฒฝ์šฐ ์ฐธ์กฐ ๊ด€๊ณ„์— ๋”ฐ๋ผ ์ˆœ์ฐจ์  ๋นŒ๋“œ ๊ฐ€๋Šฅ
  • ๋‹ค์–‘ํ•œ ์ธ์ฆ ๊ธฐ๋ฐ˜๊ณผ ๊ฒฐํ•ฉํ•œ ์ธ์ฆ, ๊ถŒํ•œ ๊ด€๋ฆฌ ๊ธฐ๋Šฅ
  • ์ž๋™ํ™”๋œ ๋ฐฐํฌ ๊ด€๋ฆฌ

์„ค์น˜

Windows
  1. www.jenkins.io/download/
  2. ์›ํ•˜๋Š” ๋ฒ„์ „ ์„ค์น˜
  3. Account, Password ์ž…๋ ฅ ํ›„ Test Credentials
    • Logon Type ์ฐจ์ด: stackoverflow.com/questions/63537185/what-are-the-differences-on-the-logon-types-choices-on-jenkins
      • Jenkins๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•ด Local์—์„œ๋งŒ ์“ธ์ง€, ํŠน์ • ์„œ๋น„์Šค ๊ณ„์ •์„ ๋งŒ๋“ค์ง€
    • this account either does not have the privilege to logon as a service ์—๋Ÿฌ
      • Windows ๊ด€๋ฆฌ ๋„๊ตฌ - ๋กœ์ปฌ ๋ณด์•ˆ ์ •์ฑ… - ๋กœ์ปฌ ์ •์ฑ…- ์‚ฌ์šฉ์ž ๊ถŒํ•œ ํ• ๋‹น - ์„œ๋น„์Šค๋กœ ๋กœ๊ทธ์˜จ - ์‚ฌ์šฉ์ž ๋˜๋Š” ๊ทธ๋ฃน ์ถ”๊ฐ€ ์—์„œ ์‚ฌ์šฉ์ž ์ถ”๊ฐ€
  4. port ์„ ํƒ
  5. ์ž์‹ ์˜ ํ™”๋ฉด์— ๋‚˜์˜จ ๊ฒฝ๋กœ์— ๋“ค์–ด๊ฐ€ initialAdminPassword๋ฅผ ํ™•์ธํ•˜๊ณ  ์ž…๋ ฅ
  6. ๊ณ„์ • ์ƒ์„ฑ ํ›„ ์‚ฌ์šฉ
Linux
$ java -version //๋ฒ„์ „ ํ™•์ธ
$ sudo apt-get install openjdk-11-jdk //java11 ์„ค์น˜

$ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
$ echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list

$ sudo apt-get update

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ๋Œ€๋ฌธ์ž+์ˆซ์ž์กฐํ•ฉ

$ sudo apt-get install jenkins

$ sudo systemctl start jenkins //Jenkins ์‹คํ–‰

Reference

โš ๏ธ **GitHub.com Fallback** โš ๏ธ