Branch: refs/changes/71/1176671/3 Home: https://github.com/jenkinsci/gerrit-code-review-plugin Commit: facaf20ca0cc2579d1463286f1e3982530761f08 https://github.com/jenkinsci/gerrit-code-review-plugin/commit/facaf20ca0cc2579d1463286f1e3982530761f08 Author: Marcin Czech <macz...@gmail.com> Date: 2024-02-19 (Mon, 19 Feb 2024)
Changed paths: M src/main/java/jenkins/plugins/gerrit/AbstractGerritSCMSource.java M src/main/java/jenkins/plugins/gerrit/GerritChange.java M src/main/java/jenkins/plugins/gerrit/GerritEnvironmentContributor.java A src/main/java/jenkins/plugins/gerrit/GerritVersion.java M src/main/java/jenkins/plugins/gerrit/ProjectChanges.java M src/main/java/jenkins/plugins/gerrit/workflow/GerritCommentStep.java M src/main/java/jenkins/plugins/gerrit/workflow/GerritReviewStep.java A src/test/java/jenkins/plugins/gerrit/GerritVersionTest.java R src/test/java/jenkins/plugins/gerrit/ProjectChangesTest.java M src/test/java/jenkins/plugins/gerrit/workflow/GerritCommentStepTest.java M src/test/java/jenkins/plugins/gerrit/workflow/GerritReviewStepTest.java Log Message: ----------- Use project name and change number as change id in Gerrit >=2.15 Gerrit doesn't guarantee that the change number is unique across multiple projects. For imported projects, the change number can be duplicated. Only the combination of the project name and change number is unique. Using only the change number would cause Gerrit to look for the change by a Lucene index lookup. Indexes may not be consistent in real-time but are eventually consistent, that means the CI can fail to locate the change because of a temporary lag in the index update. Starting from Gerrit version 2.15, the change id supports the following format: project_name~change_number. Ensure that for Gerrit version >=2.15, all REST API calls use the project~change_number format for the change id. Bug: JENKINS-72648 Change-Id: Iad06de2ad7c7146fcbc63a2fa6c3201d36237bec To unsubscribe from these emails, change your notification settings at https://github.com/jenkinsci/gerrit-code-review-plugin/settings/notifications -- 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/changes/71/1176671/3/000000-facaf2%40github.com.