I'm using Maven with Jenkins to manage automated tests in Java and selenium. The development process takes place in MacOS, and the Jenkins server is Windows. When using git to manage the testing code, the "chromedriver" resource is copied between the OS's. This causes a conflict with the windows version needing a .exe vs the macOS file.
How would this best be managed. My ideas are: - ignore the git for the chromedriver files, and manage them on each system individually - track both chromedriver files and specify based on some environment detection which to use
or is there a more elegant strategy? Can jenkins replace files on build time? something like - "take the committed macOS Chromedriver and replace it with this chromedriver.exe and run maven tests" ??