I tried it in a running Jenkins instance (gradlew server) and it worked. Why do you think that serialization won't do it?