Jenkins 에서 Docker Agent 를 사용하다보면 잘못해서 대량의 더미 에이전트가 생성될 수 있다.
UI 상으로는 Node 일괄 삭제 기능이 없기 때문에 스크립트를 통해 삭제해야 한다.
Script Console 에서 아래 스크립트 실행
for (aSlave in hudson.model.Hudson.instance.slaves) {
if (aSlave.getComputer().isOffline()) {
aSlave.getComputer().setTemporarilyOffline(true,null);
aSlave.getComputer().doDoDelete();
}
}
'IT > 업무' 카테고리의 다른 글
[Jenkins] Docker Agent Container 연결 (0) | 2021.07.30 |
---|---|
[Jenkins] 모든 Job 항목 가져오기 (0) | 2021.07.30 |
[Jenkins] Docker Agent 연결 (0) | 2021.07.30 |
[Docker] Jfrog Artifactory 를 통한 Docker 설치 (0) | 2021.07.29 |
[Crucible] Crucible cannot anchor the patch to this repository (0) | 2021.07.02 |