File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
- # Jenkins CI Test
1
+ # Jenkins CI JUnit Test
2
2
3
3
Jenkins 에 JUnit 플러그인을 설치하면 빌드 시 테스트를 돌리고 결과 리포트도 볼 수 있다.
4
4
@@ -34,3 +34,23 @@ Jenkins > Plugin Manager 에서 JUnit 플러그인 설치
34
34
- 클릭하면 아래와 같이 리포트를 볼 수 있다.
35
35
36
36
![ Imgur] ( https://i.imgur.com/TuL6ixo.png )
37
+
38
+
39
+ ## TroubleShooting
40
+
41
+ ### Jenkins JUnit Test Result Error
42
+
43
+ 빌드와 실제 테스트 실행도 모두 에러가 없었는데 콘솔 로그 마지막에 아래와 같이 표시되면서 Job이 실패로 종료되는 경우가 있다.
44
+
45
+ ```
46
+ Recording test results
47
+ ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run?
48
+ For example, /xxx/build/test-results/test/TEST-xxx.yyy.zzz/ZzzTest.xml is 24 min old
49
+ ```
50
+
51
+ 이럴 때는 아래와 같이 Jenkins Job 설정 > Build 에서 ` clean ` 을 추가해주면 해결된다.
52
+
53
+ ![ Imgur] ( https://i.imgur.com/fZz7rr9.png )
54
+
55
+
56
+
You can’t perform that action at this time.
0 commit comments