Our Jenkins git plugins are aged and need to be updated. Last time I tried that screwed up a lot of jobs :-/
The status is:
Plugin | Installed | Latest |
---|---|---|
Git Client | 1.4.6+wmf1 | 1.17.1 |
Git | 1.5.0 | 2.3.5 |
git client
The git client plugin had to be patched (T73533) because it could not reset submodules when using git 1.9 on Trusty ( https://github.com/wikimedia/git-client-plugin/commit/536940e0e98723b6542de0da791eceffbce6f16c ).
Apparently this is fixed upstream with: https://github.com/jenkinsci/git-client-plugin/commit/f75720d5de9d79ab4be2633a21de23b3ccbf8ce3 which was shipped with version 1.6.4
- args.add("git reset"); - if (hard) { - args.add("--hard"); - } + args.add("git reset" + (hard ? " --hard" : ""));
Thus the whole command is passed as a single string.
git plugin
There was a lot of changes in version 2.x of the plugin and I am not sure how well JJB supports it.