October 20, 2014

JENKINS ISSUE: Illegal Argument exception

This article talks about Illegal Argument Exception occuring in Jenkins v1.559 during build time.

After migrating from SVN to Git, java.lang.IllegalArgumentException started to occur atleast couple of times a week on daily build, while checking out the source code. Re-starting the Jenkins Slave on the build server, helped us to go past the issue temporarily and root cause exploration continued.

Earlier the assumtions & focus was to rule out options around issues with Git installation / configuration but later narrowed down that the incorrect version of Jenkins Slave installed was the causing IllegalArgumentException.

Updating the Jenkins slave from v2.2.x to  2.37 resolved the issue.