且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Jenkins中的ssh-agent上直接在Windows上使用git

更新时间:2023-11-17 08:15:04

我在以下位置看到了ssh-agent:

I see ssh-agent in:

C:\>where ssh-agent
C:\tools\gits\latest\usr\bin\ssh-agent.exe

您需要确保您的%PATH%(由执行Jenkins作业的用户看到)包括Git\binGit\usr\binGit\mingw64\bin.
(用Git安装路径文件夹替换Git)

You need to make sure your %PATH% (as seen by the user executing the Jenkins job) includes Git\bin, Git\usr\bin, Git\mingw64\bin.
(Replace Git by the Git installation path folder)

执行任务(甚至失败)后,查找环境变量"链接:您将确切看到谁在运行任务(USERNAME)和使用的PATH.

After executing a job (even failed), look for the link "Environment Variables": you will see exactly who was running the job (USERNAME) and the PATH used.