This is caused by: JENKINS-60390
The last two releases that standardise the when conditions for the branch and the changeset were not backward compatible, even when using the readResolve. See the comments in
I've started to analyse JENKINS-60390 but it might be worth to have a plan regarding those likelihood breaking changes. Therefore, I'd like to open a discussion regarding this particular feature.