You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not execute test class 'kr.flab.wiki.core.testcase.document.DocumentServiceTest$제목을 검색했을 때'.
...
Caused by: java.lang.UnsupportedClassVersionError: kr/flab/wiki/core/testcase/document/DocumentServiceTest$제목을 검색했을 때 has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
...
/home/ubuntu/jenkins 디렉토리에 Dockerfile 이 있는걸로 보아 docker 로 실행중임을 확인
docker ps 로 docker 인스턴스 목록 확인
docker exec -it $IMAGE_NAME /bin/sh 로 인스턴스 쉘에 접근
jenkins 빌드 실행로그의 [awesome-wiki-PRBuilder] $ /var/jenkins_home/workspace/awesome-wiki-PRBuilder/gradlew clean test detekt assemble -PbuildConfig=ALPHA 그대로 실행
테스트 실패 재현
docker image 내의 file:///var/jenkins_home/workspace/awesome-wiki-PRBuilder/app-core/build/reports/tests/test/index.html 파일 내용 분석
<a href 로 시작하는 모든 anchor link 의 파일들 검색후 cat 로 내용 출력
런타임 에러 실행 로그 확인
로컬 PC 에서 환경 jdk 8 로 맞추고 오류 재현 시도
오류 재현 성공
docker image inspect 명령으로 PR builder 실행환경의 jvm version 을 확인
문제 최종 확인 완료
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
개요
Jenkins PR builder 의 오류 해결
AS-IS
jdk 13 으로 빌드한 클래스 파일의 테스트를 jdk 8 에서 실행할 수 없음
사용중인 jenkins docker image 의 설정 내용
문제 해결 방안
jenkins 가 동작중인 docker image 내부의 jdk version 을 jdk 13 이상으로 올린다.
TO-BE
PR builder 의 빌드실패 문제를 해결해 망가진 Continuous Integration 프로세스를 개선한다.
The text was updated successfully, but these errors were encountered: