Skip to content
Commit fb1646b9 authored by Rishabh Budhouliya's avatar Rishabh Budhouliya Committed by Oliver Gondža
Browse files

[JENKINS-61711] Fix validateExecutable to allow Git plugin global config...


[JENKINS-61711] Fix validateExecutable to allow Git plugin global config correctly report git executable in PATH (#4653)

* Fix git not in path for Git plugin global config
Git Client Plugin global configuration allows addition of git implementations using GitTool
The field Path was not able to identify git executable. The fix involves changing prefix with
File.seperator instead of File.pathSeperator. This allows Jenkins to find the git exec at the
already existing path.

* Tests added to validate JENKINS-61711 fix

* Improve hamcrest comparison in FormValidationTest

Co-Authored-By: default avatarMark Waite <mark.earl.waite@gmail.com>

* Import matchers for `not`

Co-authored-by: default avatarMark Waite <mark.earl.waite@gmail.com>
(cherry picked from commit be1e2bea)
parent 2706b3b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment