Table of Contents
Jenkins java.io.NotserializableException: groovy.lang.IntRange
문제의 시작
젠킨스는 확장성 있는 코드를 위해, Serializable 가능한 객체만 쓰도록 강제하고 있다.
Common non-Serializable Types
- 반복문
아래와 같은 반복문 실행시 오류가 발새할 수 있다.
for (i in 0..20)
해결책은 아래와 같이 C-Style 로 변경해 주면 오류가 해결된다.
for (int i = 0; i < 20; i++)
- 정규식(Regex Matchers)