Branch: refs/heads/master Home: https://github.com/jenkinsci/gerrit-trigger-plugin Commit: f3c16fc5a56cc9b617596bb06ad9947e6f26af4f https://github.com/jenkinsci/gerrit-trigger-plugin/commit/f3c16fc5a56cc9b617596bb06ad9947e6f26af4f Author: Mark Waite <mark.earl.wa...@gmail.com> Date: 2016-08-13 (Sat, 13 Aug 2016)
Changed paths: M src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerBuildChooser.java Log Message: ----------- Prepare for git client plugin 2.0.0 coexistence The git client plugin 2.0.0 release will switch from delivering JGit 3 to JGit 4. JGit 4 requires Java 7 and provides Closeable implementations of its methods that open external resources (like files). JGit 4 removes certain methods (like release()) because they are superseded by the JGit 4 Closeable implementation. The gerrit trigger plugin depends on the git client plugin implementation of JGit. It correctly assumes the JGit provided by the git client plugin is JGit 3. If no changes are made to the plugins which depend on the JGit provided by the git client plugin, those plugins will be broken by the upgrade from JGit 3 to JGit 4. They will report NoSuchMethodError exceptions at run time or may report LinkageError exceptions during class loading on some JVM implementations. This change adapts the plugin to run with either git client plugin 1.x (JGit 3) to git client plugin 2.x (JGit 4). This is a temporary change until the plugin depends on git client plugin 2.0. Once it depends on git client plugin 2.0 (and JDK 7), this change can be reverted. Uses reflection to find the close method of RevWalk if needed. When RevWalk and TreeWalk from JGit 3 are loaded, their release() methods are called. When RevWalk and TreeWalk from JGit 4 are loaded, their close() methods are called. Commit: e64f30ef0e65748494ad0c1b1d7be9f16a30a273 https://github.com/jenkinsci/gerrit-trigger-plugin/commit/e64f30ef0e65748494ad0c1b1d7be9f16a30a273 Author: Robert Sandell <rsand...@cloudbees.com> Date: 2016-08-17 (Wed, 17 Aug 2016) Changed paths: M src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerBuildChooser.java Log Message: ----------- Merge pull request #296 from MarkEWaite/git-client-2.0.0-safeguard Prepare for git client plugin 2.0.0 coexistence Compare: https://github.com/jenkinsci/gerrit-trigger-plugin/compare/19fcdcc0b619...e64f30ef0e65 -- 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. For more options, visit https://groups.google.com/d/optout.