逗人,
请尝试通过Jenkins从windows环境中运行我在github中运行的selenium测试时遇到的以下问题。
问题1:来自JENKINS&gt; <全局工具配置部分> GIT部分, Git可执行文件的路径默认设置为“git.exe”,它给出了错误
There's no such executable git.exe in PATH: C:/Program Files (x86)/RSA SecurID Token Common,
C:/ProgramData/Oracle/Java/javapath, C:/windows/system32, C:/windows, C:/windows/System32/Wbem,
C:/windows/System32/WindowsPowerShell/v1.0/, C:/Program Files/ActivIdentity/ActivClient/, C:/Program Files (x86)/ActivIdentity/ActivClient/,
C:/windows/System32/WindowsPowerShell/v1.0/, C:/Program Files/Java/jdk1.8.0_71/bin/.
问题2:当我尝试通过从源代码管理中选择Git从jenkins配置新作业时。我正在指定存储库URL:
git@github.com:Bimlesh1681/AmazonIndia.git
这给了我错误:
Failed to connect to repository : Error performing command: git.exe ls-remote -h git@github.com:Bimlesh1681/AmazonIndia.git HEAD
答案 0 :(得分:1)
似乎Git未正确安装在您的Windows计算机上(配置错误或安装错误)。
在我的Windows节点上,我按照这个过程使用msysGit安装Git: http://guides.beanstalkapp.com/version-control/git-on-windows.html
它运行良好,你在Jenkins服务器上没有任何声明。