새로운 버전의 Jenkins가 나올때 마다 업데이트 해주면 좋겠지만...다들 귀찮은거 압니다.
docker로 운영하는 Jenkins 업데이트가 가~끔 필요할때 이렇게 하면 됩니다!
LTS버전 기준으로 원하는 war파일 버전을 찾아주세요 -> https://www.jenkins.io/download/
Jenkins download and deployment
Jenkins download and deployment The Jenkins project produces two release lines: Stable (LTS) and regular (Weekly). Depending on your organization's needs, one may be preferred over the other. See the links below for more information and recommendations abo
www.jenkins.io
docker container 내부에서 직접 다운로드 후 재시작 합니다.
# docker container 진입
docker exec -it jenkins /bin/bash
# wget 으로 .war 파일 다운로드
sudo wget [jenkins version .war file link]
# .war파일 경로 이동
sudo mv jenkins.war /usr/share/jenkins
# 파일 권한 변경 (root로 되어있지 않은 경우)
sudo chown root:root jenkins.war
# docker 재시작
docker restart jenkins
이건 본 포스팅과는 관련없는 내용이지만..Jenkins restart 할 때 (위와같이 업데이트 하는 경우에) 데이터가 초기화 되는 현상 겪어보신 분 계신가요?
plugin 호환성이 맞지 않아서 그런 현상이 발생하는 것 같은데, 다른 원인 찾으신 분 계신다면 댓글 부탁드립니다 🙏🏻
반응형
'BE' 카테고리의 다른 글
[Kotlin] Annotation Targets (0) | 2022.10.05 |
---|---|
[Jenkins] java.lang.NoSuchMethodError: No such DSL method 'cleanWs' found among steps 에러 해결 방법 (0) | 2022.09.15 |
Jenkins X 란? (0) | 2022.09.14 |