Branch: refs/heads/fix-JENKINS-68879 Home: https://github.com/jenkinsci/gerrit-code-review-plugin Commit: 6413d060ebc02851dba15450d050474667ede3a7 https://github.com/jenkinsci/gerrit-code-review-plugin/commit/6413d060ebc02851dba15450d050474667ede3a7 Author: Luca Milanesio <luca.milane...@gmail.com> Date: 2023-06-27 (Tue, 27 Jun 2023)
Changed paths: M README.md M pom.xml M src/main/java/jenkins/plugins/gerrit/GerritEnvironmentContributor.java A src/test/java/jenkins/plugins/gerrit/GerritEnvironmentContributorTest.java Log Message: ----------- [JENKINS-68879] Avoid ChangeInfo serialisation to prevent JEP-200 issues The JEP-200 has introduced stricter control on serialisation which would require the explicit listing of all classes references by ChangeInfo, including the internal implementation details of the actual runtime classes of the Maps used in Gerrit Client APIs. Prevent all the serialisation issues by resolving the extraction of change-related variable names and store them in plain Java's HashMaps of <String,String> for serialisation. Also add unit-test of the environment generation based on the ChangeInfo returned by the Gerrit API. P.S. Even if Guava may have helped, use JVM-only provided classes that won't require any class serialisation on the Jenkins agent side. Change-Id: I26c4a7c1a30c3845bb7620be7b9c963bbea62d47 -- You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/gerrit-code-review-plugin/push/refs/heads/fix-JENKINS-68879/ecdf1a-6413d0%40github.com.