Jenkins 개요

Jenkins의 특징

  1. 오픈소스인 자동화 서버 -> reference, document
  2. 다양한 플러그인 제공
    1. Pipeline
    2. Authentication. / Authorization
    3. Git
    4. Docker
  3. 다양하게 확장

실습

version: '3.9'
services:
	jenkins:
		image: jenkins/jenkins:latest
		container_name: jenkins
		environment:
			- "TZ=Asia/Seoul"
		ports:
			- "8080:8080"
		volumes:
			- "./data:/var/jenkins_home"

docker-compose.yaml

Jenkins pipeline

Scriptedpipeline

Declarative pipeline

Jenkins pipeline(Syntex)

Section

agent
stages & steps
post

Pasted image 20221229162101.png

Directive

parameters
environments
when

Jenkins의 작업 명세

Pasted image 20221229163902.png

실습

실습 예제 코드 주소

실습 코드 주소

Jenkins Architecture

Pasted image 20221229165306.png

Network Infra

Pasted image 20221229165531.png

Bastion

Pasted image 20221229165552.png

Jenkins 설치하기


#CICD #AWS