๐ก Jenkins CI/CD Archi: Distributed Agent โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for Jenkins CI/CD Archi: Distributed Agent.
Operation
Pipelines
Credential
Pipeline Sample
Container Debugging
groovy
// container๋ด breakPoint์์ ์๋ ๋ฌธ๊ตฌ ์ถ๊ฐ
input message: "pod๋ฅผ ์ ์ง ์ค์
๋๋ค. ๋๋ฒ๊น
ํ 'Proceed'๋ฅผ ๋๋ฅด์ธ์."
Scripting
groovy
// ํ์คํ ๋ฆฌ ์ ๊ฑฐ
def jobName = "All-in-one"
def job = Jenkins.instance.getItemByFullName(jobName)
job.getBuilds().each { it.delete() }
Documentation
Rollback from PV
bash
# ์ข
๋ฃ
kubectl scale sts jenkins --replicas=0
# 1. ์ด์ ํด๋๋ก ์ด๋
cd /srv/k8s-mgnt/deploy-system-jenkins-pvc-6e30ccbc-5f18-4032-a5ad-be96e9e65465
# 2. ํ์ฌ ์๋ชป๋ ๋ฐ์ดํฐ ์ญ์ (ํด๋ ์์ฒด๋ ๋จ๊ฒจ๋๊ณ ๋ด์ฉ๋ฌผ๋ง ์ญ์ )
# ๋ง์ฝ์ ๊ฒฝ์ฐ๋ฅผ ๋๋นํด ์ด์ ํด๋๋ ๋ฐฑ์
ํ๊ณ ์ถ๋ค๋ฉด mv๋ฅผ ์ฐ์ธ์.
rm -rf ./*
# 3. ๋ฐฑ์
๋ณธ ๋ฐ์ดํฐ ๋ณต์ฌ (์ ์ฒด ํ์ผ ๋ฐ ์จ๊น ํ์ผ ํฌํจ)
cp -arp ../archived-deploy-system-jenkins-pvc-73bb7dd5-3e8f-4905-8be4-cf1be17298b4/. ./
# ์์
kubectl scale sts jenkins --replicas=1




Leave a Reply