| Will try and provide logs. The problem only occured when I tried to move the code below from the jenkinsfile to Jenkins library. NoTe Code below is not literally what I have as I am not at a computer right now... def gitscm = new GitScm(... , extensions: [new LocalBranch('**')]) def scmvars = checkout gitscm While this code was in my jenkinsfile there wasn't a problem, but move it to a Jenkins library and it then fails. Curiously even though the build fails with serializable eror I found that when I hit replay then the build succeeds. Presumably during replay Jenkins doesn't try to serialise the Jenkins job state. |