[Jenkins] Jenkins Dependency error(Trilead API,credentials-binding) plugin update
ㅁ 개요
ㅇ 개발 젠킨스 플러그인이 문제가 발생하여 이를 조치하는 과정을 정리하였다.
ㅁ Dependency errors
Dependency errors:
SSH Credentials Plugin (277.v95c2fec1c047)
Update required: Trilead API Plugin (trilead-api 1.0.8) to be updated to 1.0.13 or higher
Jackson 2 API Plugin (2.13.3-285.vc03c0256d517)
Update required: JAXB plugin (jaxb 2.3.0) to be updated to 2.3.6-1 or higher
Jenkins GIT server Plugin (1.11)
Update required: SSH server (sshd 3.0.3) to be updated to 3.1.0 or higher
Some of the above failures also result in additional indirectly dependent plugins not being able to load.
ㅇ trilead-api, JAXB plugin, sshd를 업그레이드를 해야한다.
ㅁ Trilead API hpi 다운로드 & 설치
ㅇ 1.0.13 > Download : direct link를 클릭하면 파일을 다운받을 수 있다.
ㅇ Jenkins 관리 > Plugin Manager > 고급탭으로 이동한다.
다운받은 trilead-api.hpi를 등록하고 Deploy를 클릭하면 Jenkins가 플로그인을 설치하고 재기동을 하게 된다.
ㅁ Dependency errors 2
Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to re-enable these plugins.
Dependency errors:
Pipeline: Declarative Extension Points API (2.2064.v5eef7d0982b_e)
Update required: Credentials Binding Plugin (credentials-binding 1.23) to be updated to 1.27.1 or higher
Pipeline: Declarative (2.2064.v5eef7d0982b_e)
Update required: Credentials Binding Plugin (credentials-binding 1.23) to be updated to 1.27.1 or higher
Some of the above failures also result in additional indirectly dependent plugins not being able to load.
Indirectly dependent plugins:
Docker Pipeline (1.23)
Failed to load: Pipeline: Declarative Extension Points API (pipeline-model-extensions 2.2064.v5eef7d0982b_e)
Pipeline (2.6)
Failed to load: Pipeline: Declarative (pipeline-model-definition 2.2064.v5eef7d0982b_e)
Pipeline: Declarative (2.2064.v5eef7d0982b_e)
Failed to load: Pipeline: Declarative Extension Points API (pipeline-model-extensions 2.2064.v5eef7d0982b_e)
Pipeline: Declarative Agent API (1.1.1)
Failed to load: Pipeline: Declarative Extension Points API (pipeline-model-extensions 2.2064.v5eef7d0982b_e)
ㅁ credentials-binding 다운로드 및 설치
ㅇ 다운로드 링크로 이동한다.
ㅇ 1.27.1 Download direct link를 클릭한다.
ㅇ 같은 방법으로 파일을 등록하고 설치한다.
ㅇ 설치가 진행된다.
ㅇ "설치가 끝나고 실행중인 작업이 없으면 Jenkins재시작" 을 클릭하면 자동으로 재기동된다.
ㅁ 정상화 확인
ㅇ 기존에 보이지 않았던 Stage View가 정상적으로 보이는 것이 확인이 되었다.
ㅇ 하지만 테스트 빌드 시에 문제가 발생하였다.
ㅇ kubernetes를 찾을 수 없다는 메시지였다.
ㅁ kubernetes 설정
ㅇ Dashboard > Jenkins 관리 > 노드관리 > Configure Clouds
ㅇ 기존에 설치가 되어 있던 Kubernetes를 선택한다.
ㅇ Kubernetes Cloud details를 클릭한다.
ㅇ Kubernetes URL
ㅇ jenkins URL : jenkins service Load Balance 도메인을 입력한다.
ㅇ jenkins tunnel : jenkins jnlp service Load Balance 도메인을 입력한다.
ㅇ Test connection을 클릭 시 연결정보가 확인이 되면 성공이다.
ㅁ Pod Templates 설정
ㅁ 함께 보면 좋은 사이트
ㅇ 쿠버네티스 cloud 설정 자세한 링크
How To Setup Jenkins Build Agents On Kubernetes Pods
In this post, I explained the detailed steps to set up Jenkins master and scale jenkins build agents on a Kubernetes pods using jenkins kubernetes plugin
devopscube.com